-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Soft line break issue: Chrome VS safari #2522
Comments
@neSpecc @n0str @talyguryn I think many people might be facing this and the editor navigation is breaking due to this |
@neSpecc I think the issue also shows in the demo page here: https://editorjs.io |
I see. You can add "div" to your sanitiser config as a workaround. |
@neSpecc @n0str @talyguryn I see. Yes, agreed that allows for breaking lines. In my previous example, putting the caret at the beginning of "Curabitur" and going up with the upper arrow breaks navigation and goes straight to the end of "lobortis urea". Therefore the navigation on the paragraph in-between is missing. Moreover, the trying to use backspace results in a weird merging or paragraphs |
Hi @neSpecc
I have EditorJS 2.28 and I noticed a difference in behavior between Safari and Chrome.
When making a soft line break, safari is returning a
<div>
block while chrome is returning a<br>
The main issue behind this behavior is that the
<div>
gets sanitized and the carriage return disappear.The text was updated successfully, but these errors were encountered: