tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
324 stars 93 forks source link

I can't find what I'm looking for: integrations/angular.md #231

Closed michaelwechner closed 3 years ago

michaelwechner commented 3 years ago

Hi

I have integrated TinyMCE

"tinymce": "^5.7.1", "@tinymce/tinymce-angular": "^4.2.2",

according to

https://www.tiny.cloud/docs/integrations/angular/

and everything works fine, but unfortunately on Firefox I got an error re "NS_ERROR_UNEXPECTED"

According to https://github.com/tinymce/tinymce/issues/794 and other posts one should be able to fix this by calling

tinymce.remove('my_tinymce')

assung that "id" is

<editor id="my_tinymce">...</editor>

but it is not clear to me how I can call tinymce within the typescript when using Angular.

Thanks for your help in advance!

michaelwechner commented 3 years ago

IIUC I can declare tinymce inside a component as described at

https://therichpost.com/angular-7-tinymce-working-example/

Is this how it is supposed to be?

tylerkelly13 commented 3 years ago

Hi @michaelwechner,

I'll transfer this issue to the tinymce/tinymce-angular repository so the developers can have a look into this issue.

Tyler

exalate-issue-sync[bot] commented 3 years ago

Ref: INT-2509

jscasca commented 3 years ago

Hi @michaelwechner you should be able to declare the Tinymce at the top of your file and call the variable from there. Here is an exmaple: https://codesandbox.io/s/tinymceangular-forked-i3ix1?file=/src/app/app.component.ts

Let me know if that helps

jscasca commented 3 years ago

What version of FF are you using? I have not been able to replicate the issue, unfortunately

michaelwechner commented 3 years ago

Hi @michaelwechner you should be able to declare the Tinymce at the top of your file and call the variable from there. Here is an exmaple: https://codesandbox.io/s/tinymceangular-forked-i3ix1?file=/src/app/app.component.ts

Let me know if that helps

Yes, I was able to reference inside the typescript file as described in the examples above

declare var tinymce: any;

michaelwechner commented 3 years ago

What version of FF are you using? I have not been able to replicate the issue, unfortunately

I am currently using FF 88.0 (64-Bit) on Mac

jscasca commented 3 years ago

Just checking if you are still having issues with FF since we could not reproduce the specified behaviour

Is this still the case?

michaelwechner commented 3 years ago

Hi

I could fix it with a workaround :-)

Thanks

Michael

Am 02.06.21 um 09:59 schrieb jscasca:

Just checking if you are still having issues with FF since we could not reproduce the specified behaviour

Is this still the case?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tinymce/tinymce-angular/issues/231#issuecomment-852828219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIHNMADPTEUWGKS5DOKECDTQXQHZANCNFSM43EYDJIA.