chameleon-system / chameleon-system

MIT License
12 stars 11 forks source link

Wysiwyg fields add (multiple) p elements to source code #326

Open UlrichKu opened 5 years ago

UlrichKu commented 5 years ago

Describe the bug When entering arbitrary html code in a wysiwyg text field and then switch back to normal preview (non-source) mode there will be additional empty < p> elements. Switching back and forth multiplies these < p> elements.

Example code used:

<svg/>
<div></div>

(also with <svg></svg>)

Affected version(s) 6.2

Technical details Probably a problem of the used ckEditor... The "unrecognized" <svg> seems to trigger that problem.

UlrichKu commented 5 years ago

Something similar described here: https://github.com/ckeditor/ckeditor-dev/issues/1765

UlrichKu commented 5 years ago

Updating ckeditor to 4.11.2 doesn't seem to help.

UlrichKu commented 5 years ago

Possibly a configuration is possible workarounding this? https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html