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

Wish: Add support for style tags in the html editor

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.4
    • Text editor TinyMCE
    • MOODLE_24_STABLE

      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.

            moodle.com Moodle HQ
            dbroad Douglas Broad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.