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

TinyMCE Colour plugins

XMLWordPrintable

    • 10

      Something we've discussed internally is adding support for a series of colour plugins.

      At the moment the standard TinyMCE colour plugins are not suitable as they set a hex colour code as a style attribute on the content. This is 'okay' initially, but if there are any theme changes then these can become problematic.

      What we propose doing instead is to draft a contract with themes that essentially states that a series of complementary colours will be made available using CSS variables that the editor can then consume.

      These will essentially mean that we can configure colours in the editor, but if a theme implements (for example) dark mode then the colours will change such that they are still an appropriate contrast. Likewise if the background colour of the theme were to change in a future iteration, the colours would be updated to remain high enough contrast for AA compliance.

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            Votes:
            23 Vote for this issue
            Watchers:
            28 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 36 minutes
                2h 36m

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