Opened 5 years ago

Closed 5 years ago

#12313 closed Bug (wontfix)

p tags are incorrectly used when autoParagraph:false

Reported by: storchia Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

steps to repro:

Using editor with autoParagraph:false (http://jsfiddle.net/qm9z1u8j/)

1) enter "abc" don't incl quotes 2) view source: --you see: abc 3) Turn off View Source 4) go to the end of abc and hit enter 5) view source: --you see: <p>abc</p> <p>&nbsp;</p> 6) turn off View Source 7) go to the end of the nbsp and backspace up to the "c" in the line above 5) view source: --you see: <p>abc</p>

I would expect to see abc instead of <p>abc</p> after step 5. In general if autoParagrah is off, I would not expect to see any p tags around a single line

Change History (1)

comment:1 Changed 5 years ago by Piotrek Koszuliński

Resolution: wontfix
Status: newclosed
Version: 4.4.3

When you disable autoParagraph option you are left with native browser behaviour which is similar to what you described. Basically, it's poor and doesn't make sense. What's more - not using paragraphs (or other blocks) does not make sense because you end up with problems like the one you described (and bazillions of other - e.g. the content will jump if <p> has margins when you remove that <p> when backspacing). Therefore, CKEditor requires using auto paragraphing, because it makes things more correct and much, much easier to handle.

I see that it's not clear from docs that changing this options is not recommended, so I created #12315.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy