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
Description
If I have two extensions that both register the same shortcut, the one with the lower priority takes precedence. The docs say it should be higher.
I reverse the order of addProseMirrorPlugins because I implemented a system of extending extensions so the extended ones should be executed first.
constExtended=Extension.extend({addProseMirrorPlugins(){return[
...this.parent(),// previous pluginsnewPlugin(),// new plugin should run first because you maybe want to overwrite something]},})
Keyboard shortcuts should also run first for extensions with a higher priority.
Does this makes sense to you? If something doesn’t work like this it would be nice to have a codesandbox so I can check what is wrong.
Description
If I have two extensions that both register the same shortcut, the one with the lower priority takes precedence. The docs say it should be higher.
The issue is with this line:
tiptap/packages/core/src/ExtensionManager.ts
Line 209 in 28737b1
I don't understand why it's reversing. The extensions are sorted from highest priority to low, but this reverses them for adding plugins.
According to ProseMirror keymap docs:
Because we're reversing, the highest priority extensions are dispatching last.
The text was updated successfully, but these errors were encountered: