Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-606

Nested content in a div in wiki macro not-generated content is wrongly removed

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    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

            surli Simon Urli
            caubin Clément Aubin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: