Allow overriding TinyMCE config - #31313
Conversation
|
Thanks for the pull request, @tecoholic! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
The TinyMCE's configuration can be overridden by defining the TINYMCE_CONFIG_OVERRIDES key in the JS_ENV_EXTRA_CONFIG.
abf23af to
e7ebe6a
Compare
Agrendalath
left a comment
There was a problem hiding this comment.
👍
- I tested this: checked that TinyMCE configuration overrides are applied correctly
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation: n/a
- I made sure any change in configuration variables is reflected in the corresponding client's
configuration-securerepository: n/a
|
@tecoholic 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
Description
TinyMCE used in WYSWIG edit windows of the XBlocks can be configured with custom plugins by defining them in the Studio settings (ref). This PR extends that functionality to allow overriding the TinyMCE's configuration.
For eg., using the following configuration, the default set of colors in the color picker can be changed from the default set of 12 colors to a custom set of just 3.
Useful information to include:
This change allows overriding all of the TinyMCE's initial configuration. The screenshots below show how the colors in the color-picker for text-color has been changed based on the example configuration given above:
Default

With color_map override

Supporting information
Testing instructions (for devstack)
cms/envs/private.pymake studio-staticormake dev.static.studioDeadline
"None"
Other information