Input rules now take an inCode
option that controls whether they should apply inside nodes marked as code.
Input rules can now be set to be non-undoable, preventing undoInputRule
from rolling them back.
Include CommonJS type declarations in the package to please new TypeScript resolution settings.
Include TypeScript type declarations.
Fix crash when undoing input rules when the rule was triggered without inserting text.
Rename ES module files to use a .js extension, since Webpack gets confused by .mjs
The file referred to in the package's module
field now is compiled down to ES5.
Add a module
field to package json file.
Fix a null-dereference when running in strict mode.
Prevent input rules from running during compositions, since they will annoyingly interrupt them.
Improve selection handling during text replacement.
Input rules no longer fire in blocks that have their code
spec set to true.
Schema-specific rule-builders blockQuoteRule
, orderedListRule
, bulletListRule
, codeBlockRule
, and headingRule
, along with the allInputRules
array, are no longer included in this module.
Input rules with spaces in them now match any whitespace where the space is expected, to avoid mysteriously not working when a non-breaking space is present.
The input rules plugin no longer implicitly binds backspace to undo the last applied rule.
This module now exposes a command undoInputRule
, which will revert an input rule when run directly after one was applied.
Moved into a separate module.
You can now add this plugin multiple times to add different sets of rules to an editor (if you want). It is not possible to change the set of rules of an existing plugin instance.
Rules no longer take a filter
argument.
The signature of the handler
callback for a
rule changed.