neos-ui icon indicating copy to clipboard operation
neos-ui copied to clipboard

BUG: CKEditor writes "unexpected" markup after "clicking around" - not even typing

Open mhsdesign opened this issue 1 year ago • 6 comments

The logic introduced with https://github.com/neos/neos-ui/pull/3833 has a downside ... if a ckeditor plugin is ill-programmed the logic - comparing the transformed html after defocus - rather than if a user really changed stuff will lead to unexpected markup being written even-though nothing was might have changed in the eyes of the editor if they were just clicking around.

A more prominent example will probably be that if you uninstall a ckeditor plugin or change their config. For example if you adjust https://www.neos.io/download-and-extend/packages/techdivision/techdivision-ckstyles.html to use text-green instead of text-red as css class on spans, ckeditor will cease to understand the previous without an migration and thus just removes the markup.

This is not a new problem, but previously editors could influence when something was saved and that was only when typing.

NeosUi: 8.3.9

mhsdesign avatar Aug 19 '24 13:08 mhsdesign