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

XML content inside {code} macro is rendered in the WYSIWYG editor

    XMLWordPrintable

Details

    Description

      For example, add the following in wiki editor mode:

      {code:xml}
      <?xml version='1.0' encoding='UTF-8'?>
      <ccrc-settings>
          <domainName>ES</domainName>
          <username>autoxpert</username>
          <password>password</password>
          <viewRoot>/home/user/views</viewRoot>
      </ccrc-settings>
      {code}
      

      Then switch to the WYSIWYG mode and you'll see:

      {code:xml}
      ES autoxpert password /home/user/views
      
      {code}
      

      Then if you save in WYSIWYG mode you'll get the following displayed in view mode:

      code:xml}
      
      
      
      ES
      autoxpert
      password
      /home/user/views
      
      {code}
      

      Attachments

        Activity

          People

            phunghainam Phung Hai Nam
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: