Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-7993

CKEditor strips <html> and <body> automatically and updates draft when there are no changes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.26.00
    • 2.26.02
    • None
    • Sprint 81

    Description

      Existing HTML fields have all content inside <html> and <body> elements (an old Xinha leftover). CKEditor by default strips these elements whenever saving the content. As a result, editing "old" content (created with Xinha, inside <html> and <body> elements) will be marked as "changed" even without making any changes.

      Steps to reproduce:
      1. in GoGreen, open any document
      2. click the 'Edit' button to edit the document
      3. click the red cross in the tab to discard the document

      Expected: the document is closed again. The HTML contents in the draft variant is identical to the HTML contents in the published variant (check this in the console).

      Actual: a dialog pops up that says "Document has been modified. Save changes?". After clicking 'discard', the HTML in the draft variant is already different from the HTML in the published variant (e.g. it no longer contains <html> and <body>, and the markup layout is changed.

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              mdenburger Mathijs den Burger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: