MDL-75078 editor_tiny: Disable quickbars entirely
Part of MDL-75966
This commit is contained in:
@@ -214,6 +214,10 @@ const getStandardConfig = (target, tinyMCE, options, plugins) => {
|
||||
// eslint-disable-next-line camelcase
|
||||
a11y_advanced_options: true,
|
||||
|
||||
// Disable quickbars entirely.
|
||||
// The UI is not ideal and we'll wait for it to improve in future before we enable it in Moodle.
|
||||
quickbars_insert_toolbar: '',
|
||||
|
||||
// The list of plugins to include in the instance.
|
||||
// https://www.tiny.cloud/docs/tinymce/6/editor-important-options/#plugins
|
||||
plugins: [
|
||||
|
||||
@@ -119,3 +119,17 @@ export const addContextmenuItem = (contextmenu, ...menuitems) => {
|
||||
.filter((item) => item !== '')
|
||||
.join(' ');
|
||||
};
|
||||
|
||||
/**
|
||||
* Given a TinyMCE quickbars configuration, add items to the meun.
|
||||
*
|
||||
* @param {string} toolbar
|
||||
* @param {string[]} menuitems
|
||||
* @returns {string}
|
||||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
export const addQuickbarsToolbarItem = (toolbar, ...menuitems) => {
|
||||
// For the moment we have disabled use of this menu.
|
||||
// The configuration is left in place to allow plugins to declare that they would like to support it in the future.
|
||||
return toolbar;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user