Cannot read property 'getSelection' of undefined
See original GitHub issuehi, I got a problem with use it.
BTW, I was use custom route strategy that implements RouteReuseStrategy
. My router will store the old toute, then reuse it if necessary.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'getSelection' of ...
I have a list of articles. every time I clicked on any article a "dialog / modal" should be open. in such dialog...
Read more >Cannot read property 'getSelected' of undefined at popup.js:7 ...
Hi all, I synced my experiment with Pavlovia and got this error. Any idea how to fix this? Part of the code that...
Read more >Uncaught TypeError: Cannot read property 'getSelection' of ...
I just upgraded to 2.8.4 and when I try to enter free text in a comment section in the Gradebook, ckeditor throws an...
Read more >Javascript – CkEditor – Uncaught TypeError: Cannot read ...
Then I started to have this error. TypeError: Cannot read property 'getSelection' of undefined at CKEDITOR.dom.selection.getNative (ckeditor.js:448) at new ...
Read more >Cannot read property 'getSelection' of undefined (TypeError)
Cannot read property 'getSelection' of undefined (TypeError) 我在打开ckeditor时,提示这个!如何解决??我使用google chrome ...
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 FreeTop 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
Top GitHub Comments
I suppose that the problem is due to the visibility of editor in your tabs. You can add click event to the <mat-tab (click)=“MyClick($event)”> elements and in your code hide or show the editor if needed. Add the visibility *ngIf to the html code:
and in component.ts add the event:
Ia addition you can dispose and initialize the ckeditor in switch(…) if this is needed.
@kzimny no worries at all. Thank you again for your help on this!