You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of "commands", we now have the ability to funnel DOM-level events into the onCommand middleware to decouple DOM events from editor changes. This means we can package up DOM-specific hooks into plugins that can take the actual commands they want to perform as inputs.
Do you want to request a feature or report a bug?
Feature.
What's the expected behavior?
With the introduction of "commands", we now have the ability to funnel DOM-level events into the
onCommand
middleware to decouple DOM events from editor changes. This means we can package up DOM-specific hooks into plugins that can take the actual commands they want to perform as inputs.For example...
(Here taking Input Events Level 2
event.inputType
values and trigger commands by name when they are received.)This way editor-level hotkeys like cmd+b could actually be converted into schema-aware commands without having to hardcode the commands in core.
The text was updated successfully, but these errors were encountered: