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:

  1. when there more 1 wkwebview in app selectiongranularity set wkselectiongranularitycharacter, recent 1 load can select text. i've filed bug 18441138.

  2. if there click handler attached element inside body in html content of wkwebview selectiongranularity set wkselectiongranularitycharacter, text selection doesn't work inside element. i've filed bug 18440833.

  3. 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

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -