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

The WYSIWYG editor can remove nested wiki macros from the page contents for no reason

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 12.6.4
    • Fix Version/s: None
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Steps to reproduce :

      • On a fresh instance of XWiki 12.6.4, create a page, edit the page in wiki mode, and put the following content :
      {{success}}
      |test|(((
      {{info}}a nested info macro{{/info}}
      )))
      {{/success}}
      
      • Close the editor, then edit the page in WYSIWYG mode, change "test" to something else (such as "toto"), then save and view

      Expected : the success macro content stays the same, we just have the cell "test" that is renamed into "toto"

      Actual : the info macro that was in the table disappeared when saving the document.

      You can also see this issue when clicking on the "Source" button of the WYSIWYG editor : the wiki content that is shown is different from the actual document content, and looks like this :

      {{success}}
      |test|
      {{/success}}
      

      It seems that the conversion of the annotated HTML content of the WYSIWYG editor to the XWiki syntax fails and removes the info macro (and its content) from the end result.

      I'm opening the issue as part of the XWIKI project, feel free to move it to CKEDITOR if needed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              caubin Clément Aubin
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: