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

WYSIWYG editor strips part of code macro content

    XMLWordPrintable

Details

    • Unknown

    Description

      Steps to reproduce :

      • Start with a vanilla instance of XWiki 15.10.5
      • Create a new page, edit it in WYSIWYG mode, but do not use inline editing
      • Add a code macro with the following content :
         cat > /var/www/html/info.php <<EOF
           <?php
              phpinfo();
           ?> 
         EOF
      

      Expected :

      When clicking "Submit" in the macro UI, you should see the code above being properly rendered in the editor.

      Actual :

      A code macro is inserted, but with the following content :

         cat > /var/www/html/info.php <<EOF
            
         EOF
      

      Note : I initially thought that this issue could be fixed by XWIKI-21803, however I reproduced with the latest snapshot of 15.10.6.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: