Files
HRM-System/node_modules/prosemirror-inputrules/src/README.md
2026-04-13 08:19:53 +08:00

550 B

This module defines a plugin for attaching input rules to an editor, which can react to or transform text typed by the user. It also comes with a bunch of default rules that can be enabled in this plugin.

@InputRule @inputRules @undoInputRule

The module comes with a number of predefined rules:

@emDash @ellipsis @openDoubleQuote @closeDoubleQuote @openSingleQuote @closeSingleQuote @smartQuotes

These utility functions take schema-specific parameters and create input rules specific to that schema.

@wrappingInputRule @textblockTypeInputRule