Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21023

Image centered with the old image dialog are making ckeditor fail

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Reproduction steps:
      Create a document with the following content

      (% style='text-align: center' %)
      [[image:image.gif]]
      

      Expected:
      The editor is usable and not freezing

      Actual:
      The editor is unresponsible and an error message is shown in the browser 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)
      

      See https://forum.xwiki.org/t/ckeditor-image-properties-of-undefined/12678

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: