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

Allow more CSS properties in style attribute of forum posts and the like

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 5.0
    • 4.4.5, 4.5.1
    • Forum

      Currently, the HTML Purifier will filter out CSS properties like border-radius from forum posts or glossary entries.

      As per this GitHub issue, we could simply add $config->set('CSS.Proprietary', true); when setting up the purifier in weblib.php. This would allow "safe, proprietary CSS values"; there is a detailed list available in the source.

      IMHO it would make sense to do that.

            philippimhof Philipp Imhof
            philippimhof Philipp Imhof
            Luca Bösch Luca Bösch
            Glyn (Mathew) May Glyn (Mathew) May
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 47 minutes
                1h 47m

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