question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'open' of undefined

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

34reactions
rcanucommented, Sep 26, 2019

Have you guys tried wrapping <editor> with <ng-template matTabContent></ng-template>? This worked for me.

6reactions
leomayercommented, Jul 14, 2020

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.

<mat-tab>
    <ng-template matTabContent> 
         <span>My quick test</span>
         <editor ...
    </ng-template> 
</mat-tab>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found