cjwirth / RichEditorView

RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing.
BSD 3-Clause "New" or "Revised" License
1.89k stars 445 forks source link

Keyboard won't open if editor.html = "" #252

Open couderA opened 3 years ago

couderA commented 3 years ago

Hello. the issu i've encounter is the following.

My RichEditor view is 150px in height, I manually set the editor.html to Empty string, and when i'm running the app and i tap in the view the keyboard won't open.

I also noticed that this behaviour repeat even if the editor.html equal a non empty string. on this case, If I tap on the test on directly next to it (right left) the keyboard will open. But If I tap on the white space just bellow the text the keyboard won't open.

I manage to fix the issue by adding this in the style.css for the body

body {
    -webkit-user-select: auto !important;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
}