Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-16868

HTML encoding disappears when editing rich text

    XMLWordPrintable

    Details

      Description

      If you try to insert text talking about HTML into a rich text field, the < goes away. E.g. in a field that uses FCK, insert the text <P>. When you open the field for editing, it will have turned into the tag <p>.

      In .vm files that call FCK, escapeHTML is called. FCK assumes that < appears as &lt; If it appears as <, it is taken as part of a tag, if the text after it is a legal tag.

      I believe the solution is in formFieldTemplate.xslt. In the richText-field template, the textarea is set up using

      <xsl:value-of select="$currentNode" disable-output-escaping="yes" />

      I believe you want disable-output-escaping="no"

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                osp-jira OSP Jira Team (Inactive)
                Reporter:
                hedrick Charles Hedrick
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code