-
Notifications
You must be signed in to change notification settings - Fork 583
Closed
Description
I am creating a plugin using Redux v4.5.0 and it returns an error on console when I am trying to add a new repeater section by clicking "Add"
Error: Uncaught TypeError: Cannot read properties of undefined (reading 'mceInit')
on file /redux-core/inc/extensions/repeater/repeater/redux-repeater.js
on line 148 editorSettings = window.tinyMCEPreInit.mceInit[firstEditorId];
It looks like the window.tinyMCEPreInit
is undefined
I made a quick fix by replacing this line with editorSettings = ( typeof window.tinyMCEPreInit !== 'undefined' ) ? window.tinyMCEPreInit.mceInit[firstEditorId] : '';
Metadata
Metadata
Assignees
Labels
No labels