編輯

共用方式為


OnEnterRule interface

Describes a rule to be evaluated when pressing Enter.

Properties

action

The action to execute.

afterText

This rule will only execute if the text after the cursor matches this regular expression.

beforeText

This rule will only execute if the text before the cursor matches this regular expression.

Property Details

action

The action to execute.

action: EnterAction

Property Value

afterText

This rule will only execute if the text after the cursor matches this regular expression.

afterText?: RegExp

Property Value

RegExp

beforeText

This rule will only execute if the text before the cursor matches this regular expression.

beforeText: RegExp

Property Value

RegExp