Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
ckeditor5.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2024 at 17:11 UTC
Updated:
4 Aug 2025 at 16:03 UTC
Jump to comment: Most recent
Comments
Comment #2
cilefen commentedComment #3
sakthi_dev commented@jingles1987, It's mentioned in the Filter document as "Lines and paragraphs are automatically recognized. The
<br />line break,<p>paragraph and</p>close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple of blank lines."Comment #4
wim leersI don't understand what this is asking.
In every rich text editor I know:
returnmeans "new paragraph"shift+returnmeans "new line in the current paragraph"I just tried it, and it's the same in CKEditor 5. This is also true in Google Docs, Microsoft Word, Slack, and more.
So … what is this asking? 🫣
Comment #5
kubokura commentedHi, @Wim Leers, just for your information.
- This issue looks the same as the forum topic of https://www.drupal.org/forum/support/post-installation/2022-02-24/ckeditor-inserting-extra-line-breaks .
- I think there are two disadvantages in using
<p></p>tags for line break;1. Line height looks double in rich text field (e.g. CKEditor 5 field). --> This can be solved by custom theme's CSS "p { margin: 0; }" as @gisle mentioned at the forum topic.
2. An empty line is added after every line when copying text from rich text field and pasting to plain text field (including plain text editor like Notepad). --> I have no idea to solve this. I guess this is copying and pasting specification of Windows.
Hi, @Jingles1987, you might want to accept
<p></p>tags for line break always.On CKEditor 5 field, if you use
<br>tag for line break, you cannot insert table or image between lines.You can see this symptom on CKEditor 5 demo page.
1. Clear the existing text.
2. Enter the following lines with shift+enter;
3. At the empty line, insert table (e.g. 1 x 1) by clicking table icon at the menu bar. Then the table is located above line1.
You can see the expected behavior (the table is located at the empty line) on CKEditor 4 demo page.
Comment #6
quietone commentedComment #7
smustgrave commentedSince there's been no follow up as a feature request, going to close out.