- Issue created by @kentaono
- Status changed to Closed: duplicate
10 months ago 7:03am 30 January 2024 - 🇩🇪Germany dbielke1986
Dear Kentaono,
Thanks for bringing this issue to our attention. It seems to be a duplicate. Please take a look at this issue and my comment:
https://www.drupal.org/project/ckeditor5_template/issues/3402691#comment... 💬 Inserted HTML template goes wrong Closed: works as designed
If this is not the case, please feel free to reopen this issue again.
BR
Daniel - 🇩🇪Germany dbielke1986
After inserting Template 1, place the cursor immediately after "Heading" and press Enter.
And that's exactly what I meant in the other comment. Here you get stuck in the div. This behavior has nothing to do with this module, but is the CKEditor itself.
You COULD always make a line break before inserting a new template. But this would break the possibility of nested templates, which we should not do as it breaks backward compatibility.
- 🇯🇵Japan kentaono
Hello Daniel,
Thanks for the reply.
I could understand what was happening.Best regards,
Kentaro Ono - 🇩🇪Germany dbielke1986
This "trapped cursor" thing is an issue with CKEditor 5 in general, as reported here in core: [GHS] Allow the cursor to leave divs and other HTML elements at document start or end (3344462) 🐛 [GHS] Allow the cursor to leave s and other HTML elements at document start or end Postponed: needs info and upstream on CKEditor's github: [GHS] It is not possible to leave DIV element #10220 back in 2021 with sadly little movement. It happens whenever you try and use a
<div>
(or simmilar) in CKEditor 5.