Skip to content

Repeater Issue #4037

@papazetis

Description

@papazetis

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions