Open live627 opened 4 months ago
The supported events are:
Adds callable events that were only accessible via "signals"
pasteraw
paste
pastehtml
To eventually replace signals with events. I believe the concept of event listeners is easier to grasp since everything in the JS world uses them.
Should we go one step further and make init() and destroy() events too?
init()
destroy()
Just noticed that those "missing" events are bound to the editor's containing div. Is that a roundabout way to use CustomEvent from the DOM?
CustomEvent
The supported events are:
What this PR does
Adds callable events that were only accessible via "signals"
pasteraw
paste
pastehtml
Goal
To eventually replace signals with events. I believe the concept of event listeners is easier to grasp since everything in the JS world uses them.
Question
Should we go one step further and make
init()
anddestroy()
events too?