Closed StephanBiegel closed 2 years ago
Ref: INT-2652
Hi @StephanBiegel
I could not reproduce the issue in the following sandbox: https://codesandbox.io/s/tinymce-angular-forked-8hdhm?file=/src/app/app.component.html
Can you send over a reproduction?
Thanks for your answer.
Then it must have to do something with my environment the component is running in. I try to integrate your code into an empty site and test around why in my case it did not work.
Found it.
I had this in my tinyMceInit settings
selector: 'editor',
and this caused the problem. If I add the line to your sandbox, I get the same behavior. Thanks so much for your help.
Greetings Stephan
Glad we could help :)
I use the latest version of the tinyMCE angular integration.
Angular 12.2.4 > Error also existed in Angular 9 we used before.
tinymce-angular@4.2.4
If I use two editors inside the same component with 2 different IDs on the editor tag and 2 different angular bindings, then the second editor is also bound to the data source of the first one.
Means the second editor also shows and changes the first data source. If I switch from editor to textarea, the 2 show different data.
The code I used inside the component
The tinyMCE settings if needed
And here what it looks like in the browser