mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-82724 editor_tiny: Harden check for quicktoolbar and contextmenu
This commit is contained in:
parent
e0381615aa
commit
ac7cecfb37
2
lib/editor/tiny/amd/build/utils.min.js
vendored
2
lib/editor/tiny/amd/build/utils.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
@ -198,7 +198,7 @@ export const addMenubarItem = (menubar, section, menuitem, after = null) => {
|
||||
* @returns {string}
|
||||
*/
|
||||
export const addContextmenuItem = (contextmenu, ...menuitems) => {
|
||||
const contextmenuItems = (contextmenu ?? '').split(' ');
|
||||
const contextmenuItems = (contextmenu ? contextmenu : '').split(' ');
|
||||
|
||||
return contextmenuItems
|
||||
.concat(menuitems)
|
||||
@ -214,7 +214,7 @@ export const addContextmenuItem = (contextmenu, ...menuitems) => {
|
||||
* @returns {string}
|
||||
*/
|
||||
export const addQuickbarsToolbarItem = (quicktoolbar, ...toolbaritems) => {
|
||||
const quicktoolbarItems = (quicktoolbar ?? '').split(' ');
|
||||
const quicktoolbarItems = (quicktoolbar ? quicktoolbar : '').split(' ');
|
||||
|
||||
return quicktoolbarItems
|
||||
.concat(toolbaritems)
|
||||
|
Loading…
x
Reference in New Issue
Block a user