tinymce / tinymce-webcomponent

MIT License
15 stars 7 forks source link

Dispatch custom event on native and tiny events #20

Open madeInLagny opened 2 years ago

madeInLagny commented 2 years ago

Catching events in the current setup is tricky using some javascript frameworks (ie Lit-html). Adding stardard

this.dispatchEvent(
          new CustomEvent("eventName", {
            bubbles: true,
            composed: true,
          }))

would make the implementation easier to integrate. Note that a editor-ready event is also useful to catch considering time lag between element initiation and editor ready state.

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

Ref: INT-2626