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

Content duplicated if i have a macro (toc, id..) in an html macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.9.2, 2.0 M2
    • 1.8.4, 2.0 M1
    • WYSIWYG Editor
    • None
    • Integration
    • Easy

    Description

      Content duplicated if i have a macro (toc, id..) in an html macro

      If i have this content :

      {{html wiki="true"}}
      
      = Hello title 1 =
      
      {{toc start="2"/}}
      
      = Hello title 2 =
      
      {{/html}}
      

      And if i edit and save the page in WYSIWYG, my content is duplicated.
      The generated code is :

      {{html wiki="true"}}
      
      = Hello title 1 =
      
      {{toc start="2"/}}
      
      = Hello title 2 =
      
      {{/html}}
      
      {{toc start="2"/}}
      
      = Hello title 2 =
      

      I tested it with the Toc macro but also with the ID macro, the result is the same.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              eveilleau Thomas Eveilleau
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: