Major Changes
-
8c34030: 💥 Remove property
updateSelection
from thenodeInputRule
,markInputRule
and
plainInputRule
functions. You should use the newbeforeDispatch
method instead.Add new
beforeDispatch
method to thenodeInputRule
,markInputRule
andplainInputRule
parameter. This method allows users to add extra steps to the transaction after a matching input
rule has been run and just before it is dispatched.import { nodeInputRule } from 'remirror/core'; nodeInputRule({ type, regexp: /abc/, beforeDispatch: ({ tr }) => tr.insertText('hello'), });
Minor Changes
-
baf3f56: Add
ignoreWhitespace
option tomarkInputRule
for ignoring a matching input rule if
the capture groups is only whitespace. Apply to all wrapping input rules forMarkExtension
's in
theproject
.Fix #506
ItalicExtension
issue with input rule being greedy and capturing one preceding
character when activated within a text block.
Patch Changes
-
3673a0f: Fix #518 caused by the way the
EditorWrapper
was setting up listeners to events from
theRemirrorManager
. Previously the failure became apparent when used in an uncontrolled editor
inStrictMode
.Set the default
CommandFunction
type parameter to beEditorSchema
for better code completion
when creating an extension. -
baf3f56: Add
ignoreWhitespace
option tomarkInputRule
for ignoring a matching input rule if
the capture groups is only whitespace. Apply to all wrapping input rules forMarkExtension
's in
theproject
.Fix #506
ItalicExtension
issue with input rule being greedy and capturing one preceding
character when activated within a text block. -
Updated dependencies [8c34030]
-
Updated dependencies [3673a0f]
-
Updated dependencies [8c34030]
-
Updated dependencies [baf3f56]
- @remirror/extension-horizontal-rule@1.0.0-next.21
- @remirror/core@1.0.0-next.21
- @remirror/core-types@1.0.0-next.21
- @remirror/core-utils@1.0.0-next.21
- @remirror/extension-code@1.0.0-next.21
- @remirror/extension-bold@1.0.0-next.21
- @remirror/extension-italic@1.0.0-next.21
- @remirror/extension-strike@1.0.0-next.21
- @remirror/preset-wysiwyg@1.0.0-next.21
- @remirror/dom@1.0.0-next.21
- @remirror/extension-annotation@1.0.0-next.21
- @remirror/extension-auto-link@1.0.0-next.21
- @remirror/extension-bidi@1.0.0-next.21
- @remirror/extension-blockquote@1.0.0-next.21
- @remirror/extension-code-block@1.0.0-next.21
- @remirror/extension-collaboration@1.0.0-next.21
- @remirror/extension-diff@1.0.0-next.21
- @remirror/extension-doc@1.0.0-next.21
- @remirror/extension-drop-cursor@1.0.0-next.21
- @remirror/extension-emoji@1.0.0-next.21
- @remirror/extension-epic-mode@1.0.0-next.21
- @remirror/extension-events@1.0.0-next.21
- @remirror/extension-gap-cursor@1.0.0-next.21
- @remirror/extension-hard-break@1.0.0-next.21
- @remirror/extension-heading@1.0.0-next.21
- @remirror/extension-history@1.0.0-next.21
- @remirror/extension-image@1.0.0-next.21
- @remirror/extension-link@1.0.0-next.21
- @remirror/extension-mention@1.0.0-next.21
- @remirror/extension-paragraph@1.0.0-next.21
- @remirror/extension-placeholder@1.0.0-next.21
- @remirror/extension-position-tracker@1.0.0-next.21
- @remirror/extension-positioner@1.0.0-next.21
- @remirror/extension-react-component@1.0.0-next.21
- @remirror/extension-react-ssr@1.0.0-next.21
- @remirror/extension-search@1.0.0-next.21
- @remirror/extension-text@1.0.0-next.21
- @remirror/extension-trailing-node@1.0.0-next.21
- @remirror/extension-underline@1.0.0-next.21
- @remirror/extension-yjs@1.0.0-next.21
- @remirror/preset-core@1.0.0-next.21
- @remirror/preset-embed@1.0.0-next.21
- @remirror/preset-list@1.0.0-next.21
- @remirror/preset-react@1.0.0-next.21
- @remirror/preset-social@1.0.0-next.21
- @remirror/preset-table@1.0.0-next.21
- @remirror/react@1.0.0-next.21
- @remirror/react-social@1.0.0-next.21
- @remirror/react-wysiwyg@1.0.0-next.21
- @remirror/core-helpers@1.0.0-next.21
- @remirror/react-utils@1.0.0-next.21
- @remirror/theme@1.0.0-next.21
- @remirror/pm@1.0.0-next.21