Skip to content

Error: TypeError: Cannot read property '_destroyed' of undefined when pasting data #60

@edwinvanelk

Description

@edwinvanelk

When data is pasted from some (other) Mendix app, a <DIV> tag with a property like [widgetid="mxui_widget_TextArea_24"] is added to the text in the CKEditor:

for example:

<div data-mendix-id="561_3" focusindex="0" id="mxui_widget_TextArea_24" style="text-align:left" widgetid="mxui_widget_TextArea_24"> waterschade</div>

When leaving the page containing the CKEditor with this text (by saving or even using cancel button) , Mendix gives an error:

Cannot read property '_destroyed' of undefined TypeError: Cannot read property '_destroyed' of undefined
at http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:46:44102
at Object.forEach (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:5:30397)
at Object.e.exports.destroyWidgetsIn (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:46:44078)
at O.(anonymous function).S.destroy (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:51:132910)
at O.(anonymous function).S. (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:51:369792)
at O.(anonymous function).S.a [as destroy] (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:5:53891)
at l.Animation.onEnd (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:74:160192)
at l.Animation._fire (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:5:117521)
at l.Animation._cycle (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:5:119428)
at Object. (http://localhost:8080/mxclientsystem/mxui/mxui.js?636664610094201914:5:26579)

After removing the [widgetid] property from the <DIV> tag in the text, error is gone.

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