Insert line break #4244
Replies: 3 comments 5 replies
-
Is there any chance to get an answer to this? I got a very good impression of Quill/Parchment from the website and docs and also from working on some test implementations, but without proper support for line breaks, it doesn’t seem to be usable. Actually, structuring the document model in rows and using \n as the separator seems like a design flaw to me, even though there must be reasoning behind that. I wonder how deep one would have to dive into Parchment to make line breaks work. The docs and code (especially the exmple with the Or am I just missing something and linebreaks are already working? |
Beta Was this translation helpful? Give feedback.
-
One can use an empty span to create a visual newline effect: https://codepen.io/johndoe75/pen/vYwdPBY I wonder if creating a blot that represents such an empty span would work. When doing I tried to get this work but no luck. The docs are so bad… there’s a lot of stuff written down but they don’t actually explain things. I will keep on guessing… |
Beta Was this translation helpful? Give feedback.
-
For anyone looking into the same issue, I have decided to use another editor. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to insert a line break (
<br>
). I discoveredblots/break.js
, which seemed to be a good fit. I tried insert that withBut nothing happens and the returned delta is empty. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions