Opened 11 years ago

Last modified 8 years ago

#11524 confirmed Bug

BBCode plugin "consumes" line breaks when switching to source

Reported by: Olivier "__MaX__" ZUCCARO Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description

Tested on the demo using the BBcode plugin to confirm the bug. ( ckeditor.com/demo#bbcode )

When adding some line breaks between inline text and a block element, each time the user switch to source code, then switch back to preview. One line break disappear.

To reproduce the bug, use the demo (link above). Switch to source code and paste this code :

This is some [b]sample BBCode text[/b]. You are using CKEditor.





[list=1]
[*]test
[*]test
[*]test
[/list]



test test test



[quote]Test content[/quote]




[quote]Test content[/quote]

Switch back to preview, then switch back and forth to see that the line breaks between the first line of text and the list are disappearing and also the line breaks between the line "test test test" and the first quote, and finally also the line breaks between the two quotes.

It doesn't only happen when switching back to source. It has the same behavior when saving the content. If you save the content in a database, each time you save you lose some of the line breaks exactly as if you were switching to source then back to preview before saving.

Change History (3)

comment:1 Changed 11 years ago by Olivier "__MaX__" ZUCCARO

I forgot, tested on Chrome 32.0.1700.102m and Firefox 26.

comment:2 Changed 11 years ago by Jakub Ś

Keywords: bbcode line-breaks line break plugin source removed
Status: newconfirmed
Version: 4.3.24.0

I was able to reproduce this problem from CKEditor 4.0 (works fine in beta) in every browser.


Can this issue be in anyway related to #10146?

comment:3 Changed 8 years ago by Jakub Ś

Other issues with line breaks: #7870, #10078, #11524.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy