Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1593

Including a <script> in a rich editor paragraph renders that paragraph uneditable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.0.2, 3.5.4
    • gui
    • None

    Description

      I add something like this to a rich editor paragraph using the Source view:

      <script type="text/javascript">
      alert("Hello there!");
      </script>

      When the page reloads, the alert displays correctly. However, when I go to edit that paragraph again, the browser mistakenly interprets the </script> in what I've entered as the end of the script block that configures FCKEditor, resulting in gibberish on the screen and no usable FCKEditor control.

      This article details the solution:
      http://www.wwco.com/~wls/blog/2007/04/25/using-script-in-a-javascript-literal/

      I've implemented this for Magnolia's FCKEditor integration. Patch is included.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              seanmctex Sean McMains
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD