You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ue with chunking selection that doesn't quite split things correctly because `window.getSelection()` is returning the range values from the unescaped text. Need to manage the difference somewhere.
Converting back and forth to a native `Selection` object required accommodating the HTML special characters in the offsets. The string the browser returns from `textContent` is not escaped which is a problem when trying to work with a selection in a block with a special character around.
This should finish out the fix for bevacqua#47
This issue comes from HTML special characters not being escaped properly in the WYSIWYG editor. Getting the textContent or innerText from the browser will give the unescaped version of the text. I've fixed the issue over at BlinkUX/woofmark and I'll try and see if I can't clean up a PR to merge upstream.
The less-than caret followed by text is removed when you e.g. set some text to bold in wysiwyg mode.
E.g: in the demo, write "<e", and change some other text to bold.
Is there any possibility to preserve these when typed in?
The text was updated successfully, but these errors were encountered: