tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 92 forks source link

'Editors with duplicate Id will not be able to mount' warning given when setting id on editor component #374

Open radagasus opened 3 months ago

radagasus commented 3 months ago

What is the current behavior?

If you set a specific ID on the editor component, it triggers the following warning : TinyMCE-Angular: an element with id already exists. Editors with duplicate Id will not be able to mount.

This is because the code checks for elements with an id that clashes, but it so happens that the editor component already is assigned this id.

What is the expected behavior?

No warning should be thrown.

danoaky-tiny commented 3 months ago

I've been able to replicate here: https://codesandbox.io/p/sandbox/issue-374-2m5828.

Internal ref: INT-3299