Closed liesahead closed 6 months ago
Ref: INT-2540
It looks like it is referencing a removed element. It's a bit hard to tell without a replication case. Can you provide a simple replication?
@jscasca , will create a repro this month (I hope even this week).
As this issue has gone stale, I'm closing it for now. Feel free to open a new issue if this problem persists.
What is the current behavior? Currently getting such error when editor (editor is not in iframe but :warning:![image](https://user-images.githubusercontent.com/32300784/118126383-ecc0f380-b400-11eb-9a2d-441ed8c36fdc.png)
inline
so it shouldn't happen) is initialized insidengFor
orngIf
. Due to this error toolbar for such editors is not displayed and content fromformControl
is not set on init.Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar. Error is happening in![image](https://user-images.githubusercontent.com/32300784/118126546-28f45400-b401-11eb-9753-99f24457ae28.png)
tinymce.js
(place marked in screenshot) becausedocumentOrShadowRoot
is for some reason not the document but some ancestor element for such editors.What is the expected behavior? No such errors. When editor is not in mat tabs or with
ngIf
/ngFor
attribute it doesn't fail (screenshot of working editor attached below).We were able to fix it with some hack (not sure yet how stable it is). We have a wrapper component for angular-tinymce where we added a
viewInited
boolean variable. InngAfterViewInit
this variable is toggled to true. And it is used in template like so:<editor *ngIf="viewInited"></editor>
Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular?