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

Make atto foreground colors and background colors configurable

    XMLWordPrintable

Details

    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_31_STABLE
    • MDL-46531-master
    • Hide

      +# Enable the fontcolor and backcolor atto plugins (go to atto toolbar settings and add them to the toolbar)

      1. View an editor
      2. Expand all options and view the dropdown for the fontcolor and the background color
        • Confirm that colours are shown
      3. Make some rainbow text using each of the colours and save your content
        • Confirm that the colours are shown in the resulting content

      You can also modify the theme to change the colours and check that they do indeed change in the resultant content. Note however that existing content will not be changed.+

      Show
      +# Enable the fontcolor and backcolor atto plugins (go to atto toolbar settings and add them to the toolbar) View an editor Expand all options and view the dropdown for the fontcolor and the background color Confirm that colours are shown Make some rainbow text using each of the colours and save your content Confirm that the colours are shown in the resulting content You can also modify the theme to change the colours and check that they do indeed change in the resultant content. Note however that existing content will not be changed.+

    Description

      In TinyMCE, there was a plethora of colors to choose for foreground color and background color.

      In Atto, there is only a number of 6 colors which are hardcoded.

      While I appreciate simplicity, it is foreseeable that some of the colors may not work with some corporate identity themes.

      So I propose to have the colors which are hardcoded in
      lib/editor/atto/plugins/backcolor/yui/src/button/js/button.js
      and
      lib/editor/atto/plugins/fontcolor/yui/src/button/js/button.js
      to be configurable within the Atto settings page.

      Thanks

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abias Alexander Bias
              Sam Hemelryk Sam Hemelryk
              Dave Cooper Dave Cooper
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              29 Vote for this issue
              Watchers:
              37 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: