ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

When using bbcode plugin some smileys are broken after to have seen the source #4365

Open xillibit opened 3 years ago

xillibit commented 3 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. On ckeditor with bbcode, insert the smiley angry : https://jsfiddle.net/xilibit/co8zh5mL/5/
  2. View source and go back to normal
  3. You see now the partial code of the smiley

By the way the setting CKEDITOR.config.smiley_descriptions https://github.com/ckeditor/ckeditor4/blob/major/plugins/smiley/plugin.js#L84 is useless when using bbcode plugin

Expected result

When inserting smileys the code shouldn't remains when going on source and going back

Actual result

For some smileys the code remains when going back to normal view

Other details

Dumluregn commented 3 years ago

Hello, thank you for the report. I was able to reproduce this issue also with Chrome on macOS with the latest (4.15.1) version of CKEditor. Without the bbcode plugin everything works fine.