#6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph))
31 · by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
Example where it disturbs:
Seems that this is not easy:
Kinder
Kommentare
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : One thing to do: have p with 3pt of margin for p inside a ql-editor.
- 1 Jahr ago von Sharif Mehedi about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : I just pushed some changes in react containing quill-next. Still need some work but good for a first draft.
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : In other words, do not invest much more time into this. It seems to be an old problem in Quill. If it is true what zozoh writes ("The key reason is that Quill uses \n to generate a new paragraph, so it doesn't have an elegant way to identify <br>"), then the u2028 character looks like a solution. Or...
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : Their GitHub ticket 2872 was long closed, but there is github.com/slab/quill/issues/4412, and I now wrote a comment there.
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : I now also read the discussion on github.com/slab/quill/issues/2872 which means at least we are not alone.
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : first second (there's a u2028 between first and second)
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : Found an interesting hint on github.com/slab/quill/issues/3065: "following this example. Found it through this post"
- 1 Jahr ago von Sharif Mehedi about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : Extending the Embed quill's blots/embed at first glance seem to work, but when I open the content on html editor, the content appears incorrectly. After reading this discussion and this PR. I am indecisive about what to do with the problem at hand.
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : I increased priority a bit because I'd like to advance with the songbook page on SW.
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : This looks like a quick solution: stackoverflow.com/questions/78595111/solution-for-line-break-with-br-tag-after-updating-quill-to-2-0
- 1 Jahr ago von Luc Saffre about #6413 (Shift+Enter should insert a <br> tag (a newline), not a <p> tag (a new paragraph)) : Created new Ticket #6413 (Shift+Enter should insert a
tag (a newline), not a tag (a new paragraph)).