aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
184 stars 43 forks source link

Add rules to CKEditor to prevent the addition of white-space on "save". #152

Closed rowild closed 4 years ago

rowild commented 4 years ago

Issue: https://github.com/aimeos/ai-admin-jqadm/issues/151 CKEditor documentation: https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_htmlWriter.html#method-setRules

Currently, CKEditor appends "\n" to "br" and "p" (and probably others that I didn't test) tags on each save action and on each CKEditor instance on a page. Even though they do not disturb the HTML output (layout-wise), they quickly sum up and generate huge white space areas, which are annoying when debugging.

The new options prevent CKEditor 4 in doing so. (Note: CKEditor 5 handles this topic in a different way.)

aimeos commented 4 years ago

Thanks! Can you please fix the indentions so we can merge?

rowild commented 4 years ago

Uuups, sorry! Done.