Uploaded image for project: '{RETIRED} CKEditor Integration'
  1. {RETIRED} CKEditor Integration
  2. CKEDITOR-313

XML declaration gets removed in code-block on later edits of page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Trivial
    • None
    • 1.33
    • None
    • None
    • Ubuntu 18.04.3 LTS
      tomcat-9.0.16
      java-1.8.0-openjdk-amd64
      XWiki 10.11.8
    • Unknown

    Description

      If I use the macro code and define that it's XML, and if I try to use the WYSIWYG to save a snippet that contains the XML-declaration, the wysiwyg editor will remove the inital declaration when I save. 

      If I try to save this:

      {{code language="xml"}}
      <?xml version="1.0" encoding="UTF-8"?>
      <AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://schemas.xmlsoap.org/encoding/ AnyConnectProfile.xsd">
      <ServerList>
      <HostEntry>
      <HostName>Name In Dropdown List</HostName>
      <HostAddress>Server.Address.Here</HostAddress>
      <!-- <UserGroup>GroupNameHere</UserGroup> -->
      </HostEntry>
      </ServerList>
      </AnyConnectProfile>
      {{/code}}
      

      The first line <?xml.... will be omitted from the document, and if I edit the page in wiki-mode and save, but someone edits the page at a later point, not even touching the code-block, it still strips out the xml-declaration

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              flatrick Patrik Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: