SCEditor icon indicating copy to clipboard operation
SCEditor copied to clipboard

Bind missing events

Open live627 opened this issue 1 month ago • 1 comments

The supported events are:

  • 'keyup`
  • 'keydown`
  • 'Keypress`
  • 'blur`
  • 'focus`
  • 'input`
  • 'nodechanged` - When the current node containing the selection changes in WYSIWYG mode
  • 'contextmenu`
  • 'selectionchanged`
  • 'valuechanged`

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() and destroy() events too?

live627 avatar May 08 '24 21:05 live627