Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37296

Wish: Add support for style tags in the html editor

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: HTML Editor (TinyMCE)
    • Labels:
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      Add support for style tags in the TinyMCE editor. This can be done by adding the line
      'valid_children' => "+body[style]", // Add style tag as a valid child of body.
      after line 171 of the <moodledir>\lib\editor\tinymce\lib.php file

      Currently the editor strips out perfectly valid style tags, causing experienced html writers to need to use standard web forms to edit text or to put styles within tags rather than using classes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              dbroad Douglas Broad
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: