TypeError: Cannot read property 'open' of undefined
See original GitHub issueI have some problem: if insert tinymce-angular component <editor>
in angular material <mat-tab>
component, then navigation on tabs triggers an error:
ERROR TypeError: Cannot read property 'open' of undefined
at Object.initContentBody (tinymce.js:22989)
at Object.init$1 [as init] (tinymce.js:23160)
at Object.init$2 [as init] (tinymce.js:23440)
at Editor.<anonymous> (tinymce.js:23526)
at Array.<anonymous> (tinymce.js:6752)
at each$1 (tinymce.js:2125)
at loadScripts (tinymce.js:6749)
at ScriptLoader.loadScripts (tinymce.js:6762)
at ScriptLoader.loadQueue (tinymce.js:6699)
at tinymce.js:23524
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:13 (2 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'open' of undefined modal
I stumbled upon this while playing around with the default plunker found in the docs. If both values are not the same there...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >ERROR TypeError: Cannot read property 'open' of undefined
I have a file manager component which is working well. I right click and select a document and "open" with the context menu....
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >“TypeError: Cannot read property 'open' of undefined”
In my laravel project I'm using a package called LaraToaster https://github.com/theorythree/LaraToaster i do what the package required LaraToaster.vue.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Have you guys tried wrapping
<editor>
with<ng-template matTabContent></ng-template>
? This worked for me.This worked for me - BUT only when I wrapped the complete content of the
mat-tab
, i.e.