Opened 9 years ago
Last modified 9 years ago
#13840 confirmed Bug
Automatic Paragraph Closing Creates Empty Paragraph
Reported by: | Aron Pasieka | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: | ckeditor@… |
Description
Steps to reproduce
- In Source mode, create a paragraph tag that contains a div, e.g.
<p>Lorem<div>ipsum</div>dolor...</p> <p>... sit amet...</p>
- Toggle back to WYSIWYG mode.
Expected result
Paragraph tags have been closed and (in the above example) we are left with 4 block tags.
<p>Lorem<p> <div>ipsum</div> <p>dolor...</p> <p>... sit amet...</p>
Actual result
An empty paragraph has been added after the repaired paragraph.
<p>Lorem<p> <p>ipsum</p> <p>dolor...</p> <p> </p> <p>... sit amet...</p>
(And the div has been replaced by a p, but that's a separate concern.)
Other details (browser, OS, CKEditor version, installed plugins)
Reproduced in Chrome 46.0.2490.71 m and Firefox 41.0.1 on Windows 7.
Change History (4)
comment:1 Changed 9 years ago by
Cc: | ckeditor@… added |
---|
comment:2 Changed 9 years ago by
comment:3 Changed 9 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.5.4 → 3.0 |
(And the div has been replaced by a p, but that's a separate concern.)
This is because you are using standard package or other one which doesn't have div plugins included. The DIV is converted to P by ACF. This part of ticket is invalid as editor works as expected here.
An empty paragraph has been added after the repaired paragraph.
This part is valid and can be reproduced from CKEditor 3.0 in all browsers.
comment:4 Changed 9 years ago by
(And the div has been replaced by a p, but that's a separate concern.)
This is because you are using standard package or other one which doesn't have div plugins included. The DIV is converted to P by ACF. This part of ticket is invalid as editor works as expected here.
Thanks for that. It wasn't something I was experiencing in our implementation, just on the demo page so I wasn't overly worried about it. Your explanation makes sense.
Typo in Expected and Actual results:
should say