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

TinyMCE Colour plugins

    XMLWordPrintable

Details

    • 10

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Clockify

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