Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResetBlockTypePluginRule

Hierarchy

Index

Properties

Optional defaultType

defaultType: string

Default type of slate blocks.

default

'p'

Optional hotkey

hotkey: string | string[]

Hotkeys to listen to trigger a plugin action.

Optional onReset

onReset: (editor: TEditor<AnyObject>) => void

Callback called when resetting.

Type declaration

predicate

predicate: (editor: TEditor<AnyObject>) => boolean

Additional condition to the rule.

Type declaration

types

types: string[]

Node types where the rule applies.

Generated using TypeDoc