ios - Text Selection in WKWebView: WKSelectionGranularityCharacter -
i've got app uses web view text can selected. it's long been annoyance can't select text across block boundary in uiwebview.  wkwebview seems fix property on configuration: selectiongranularity.  1 of possible values wkselectiongranularitycharacter:
selection endpoints can placed @ character boundary.
sounds great! need. except when set on web view, can no longer select text @ all. going on? there else need set? has figured out?
update: i've figured out following bugs:
- when there more 1 wkwebview in app selectiongranularity set wkselectiongranularitycharacter, recent 1 load can select text. i've filed bug 18441138. 
- if there click handler attached element inside - bodyin html content of wkwebview selectiongranularity set wkselectiongranularitycharacter, text selection doesn't work inside element. i've filed bug 18440833.
- text selection fails in wkwebview after you've entered edit mode on uitextview somewhere else in app until wkwebview reloads. i've filed bug 18468405. 
has worked around of these?
 
 
Comments
Post a Comment