ckeditor4 icon indicating copy to clipboard operation
ckeditor4 copied to clipboard

br before blockquote gets removed

Open marc60 opened this issue 7 years ago • 3 comments

Type of report

There is a bug in the bbcode plugin. When there is a "br" before a blockquote and you switch to sourcemode and back, 1 br gets removed. It happends also when you publish a post. So when you have for example 4 br´s (line breaks) before a blockquote and you switch 4 times to sourcemode and back, all the br´s are gone. Its important for me to keep the entermode br instead of p or div.

Provide detailed reproduction steps (if any)

  1. Open https://ckeditor.com/docs/ckeditor4/latest/examples/bbcode.html
  2. Empty / remove the existend text
  3. type some unformated text "asdfasdfasfasdf"
  4. press 4 times enter (4 br´s are visible in the console)
  5. type some unformated text "adfasdfasdfasdf".
  6. Mark this text as a blockquote
  7. Switch to sourcecode
  8. Check the count of the br´s, you will see now only 3 are there
  9. Repeat the 3 times more and all br´s are gone and the blockquote is direct under the first text.

Expected result

Keep the line breaks.

Actual result

Line breaks gets removed on submit and sourcemode.

Other details

  • Browser: Every browser
  • OS: Win7 and Win10
  • CKEditor version: 4
  • Installed CKEditor plugins: bbcode

Thank you very much for getting into.

marc60 avatar Dec 19 '18 09:12 marc60

I was able to confirm the issue.

msamsel avatar Dec 19 '18 12:12 msamsel

Same here.

sneakyx avatar Jun 28 '21 08:06 sneakyx

Has this ever been addressed or a workaround figured out? Been years, obviously, and it still does it. Same with lists.

SP4NQ avatar Aug 04 '23 04:08 SP4NQ