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
The solution is simply to add the check. Inputrules are undoable by default, so this should only affect users that are explicitly disabling the feature.
if(rule.undoable){tr.setMeta(plugin,{transform: tr, from, to, text })}view.dispatch(tr)
Runtime
Chrome
OS
Windows
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered:
Initial checklist
Affected packages and versions
@milkdown/[email protected] @milkdown/[email protected]
Link to runnable example
No response
Steps to reproduce
{ undoable: false }
as the third argument.undoInputRule
should not trigger.Expected behavior
If an inputrule is specified as
undoable
, then pressing backspace should not doundoInputRule
.Actual behavior
The code ignores the
undoable
option because therun
function differs from the upstreamprosemirror-inputrules
function.Milkdown implementation
prosemirror-inputrules implementation
The solution is simply to add the check. Inputrules are undoable by default, so this should only affect users that are explicitly disabling the feature.
Runtime
Chrome
OS
Windows
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: