Hello,
A serious error has been bothering me for a few days.
I don’t know when it started or after the update to 15.4 or earlier. Well, when editing articles where an image is inserted, the editor “freezes”.
I see the following error in the console:
ckeditor.js:289 Uncaught TypeError: Cannot set properties of undefined (setting ‘previous’)
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.htmlParser.element.replaceWith (ckeditor.js:289:316)
at c.downcast (ckeditor.js:1505:340)
at f. (ckeditor.js:1122:16)
at f.l (ckeditor.js:10:246)
at f. (ckeditor.js:12:91)
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13:285)
at CKEDITOR.htmlDataProcessor.toDataFormat (ckeditor.js:325:116)
at e.getData (ckeditor.js:370:195)
at e. (ckeditor.js:376:194)
at f.l (ckeditor.js:10:246)
I am also attaching an attachment for better visualization.
reverting the version from the history back (without the image) helped as follows the editor works.
As soon as I add (insert) an image, the editor freezes.
Could you help me? What could be wrong?
I haven’t installed any extensions for a long time, the only changes I made were upgrades (apt update, apt ugprade)
without an image, editing works and everything is OK
with a pasted image (nothing more) and after saving, editing is no longer possible. The only way to fix it is to revert to an older version via history.
wait for 15.5 to be released (beginning of next week)
if you feel comfortable with it, you can manually remove the (% style='text-align:center;'%) from the images, using the wiki editor, and re-center the image from CKEditor afterwards
Thanks for raising this issue, and sorry for the inconvenience.