tinymce-angular icon indicating copy to clipboard operation
tinymce-angular copied to clipboard

TinyMCE fails to initialize in Firefox

Open angelxz opened this issue 10 months ago • 2 comments

What is the current behavior? TinyMCE fails to initialize in Firefox with the following error: Uncaught (in promise) TypeError: t is undefined On Chrome there's no such issue for the same page. It is strange though, that the error doesn't show on the first clean load (in a private window) and the editor initializes correctly. But on second and consequent loads, it doesn't work and shows the error in console. Image

Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.

What is the expected behavior?

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? tinymce-angular^8.0.1 Angular^19.1.2 Firefox 136.0.4 (64-bit) Tested on Windows 10, Linux, MacOS

angelxz avatar Mar 27 '25 15:03 angelxz

Hi @angelxz I found the same bug, where you able to fix the issue?

ahaller-billtrust avatar Apr 09 '25 18:04 ahaller-billtrust

Hi @ahaller-billtrust! Yes, I actually finally found a "hack" to make it work, but I still don't know why exactly does it happen. What I did is to delay the initialization using *ngIf. In my case I set it to initialize after the api request has finished, i.e. *ngIf="!isLoadingData" for example. Let me know if you find the exact reason for the error and a proper solution!

angelxz avatar Apr 11 '25 10:04 angelxz