mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 08:23:01 +02:00
MDL-77895 editor_tiny: standardize quickbar selection toolbar.
Ensure the same heading tags are available as those defined in the editor block formats configuration (c51b7e2c). Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
This commit is contained in:
parent
0e08d0df60
commit
adb6d5468e
2
lib/editor/tiny/amd/build/editor.min.js
vendored
2
lib/editor/tiny/amd/build/editor.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -360,6 +360,9 @@ const getEditorConfiguration = (target, tinyMCE, options, pluginValues) => {
|
||||
.replaceAll(/\| *\|/g, '|');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
instanceConfig.quickbars_selection_toolbar = instanceConfig.quickbars_selection_toolbar.replace('h2 h3', 'h3 h4 h5 h6');
|
||||
|
||||
// Next we call the `configure` function for any plugin which defines it.
|
||||
// We pass the current instanceConfig in here, to allow them to make certain changes to the global configuration.
|
||||
// For example, to add themselves to any menu, toolbar, and so on.
|
||||
|
Loading…
x
Reference in New Issue
Block a user