Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use commands within InputRule and PasteRule #2035

Merged
merged 4 commits into from
Oct 14, 2021

Conversation

philippkuehn
Copy link
Contributor

With this PR we can now use commands, chain and can within input rules and paste rules as known from command methods.

new InputRule({
   find: someRegex,
-  handler: ({ state, range, match }) => {
+  handler: ({ state, range, match, commands, chain, can }) => {
     // ...
   },
})

@philippkuehn philippkuehn merged commit 4303637 into main Oct 14, 2021
@philippkuehn philippkuehn deleted the feature/add-reusable-commandmanager branch November 9, 2021 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant