tinymce / tinymce-webcomponent

MIT License
15 stars 7 forks source link

No event fired with lit-html #15

Open madeInLagny opened 3 years ago

madeInLagny commented 3 years ago

tinyMCE webcomponent is a great piece of work. But it only partially work in a lit-html environement. Events are not fired. Is there a way around it ?

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

Ref: INT-2536

davidkudera commented 2 years ago

Not nice, but works: https://www.tiny.cloud/docs/integrations/webcomponent/#eventbinding

fdendorfer commented 3 weeks ago

Events are fired, but it's kinda weird from my experience. My solution at the moment is to add a function to window in firstUpdated() and then assign it to the web-component like <tinymce-editor setup="window.rteOnSetup"></tinymce-editor>. This only works with setup though, not with any of the other events