Is it possible to insert a paragraph break after a block of text with an image (on the right or left) so that the next paragraph starts “cleanly” again?
I would like to combine an image and text (formatted as a “lead paragraph”) at the beginning of pages. However, with short texts, the next paragraph starts too early, which makes the layout look less appealing.
This macro resets the floating of the following elements. If you have images floating on the left or right and want to insert new text in a new paragraph below the images, then you must insert this macro before the new text.
Could we introduce the concept of “line break” via the “+” button that inserts the code that you’ve posted automatically?
The only recommendation that I would make is to have this break visible when editing so users understand what’s going on and let them delete this element easily.
If you don’t use a macro and instead generate a DIV, that DIV will be editable, meaning that the user will be able to insert text in it. It will look like an empty line. Moreover, DIVs can behave unexpected in CKEditor, compared to paragraphs, so be aware of that.
Ideally, for consistency, the user would simply insert a paragraph (Enter key) and then use right click + “Edit Paragraph Properties”, like we have for lists (where we can change the list style). In this dialog, that doesn’t exist ATM, the user would have an option to clear the float around the paragraph (not sure how to present this in a non-technical way).
I’m not sure if it’s worth adding this on top of CKEditor. Something to keep in mind for BlockNote.
Yes, sure. OTOH, I believe that we need to keep support for CK for a long time in the future (N years), so I don’t think we should stop improving our WYSIWYG with CK.