Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CodeBlockPluginOptions

Hierarchy

Index

Properties

Optional clear

clear: string | string[]

Node properties to delete.

Optional component

Plate maps each slate node to this component to render.

Optional defaultType

defaultType: string

Default type of slate blocks.

default

'p'

Optional deserialize

deserialize: Partial<DeserializeOptions>

getElementDeserializer and getLeafDeserializer options.

Optional deserializers

deserializers: string[]

Optional getNodeProps

getNodeProps: GetNodeProps

Plate will pass its return value as a component prop nodeProps.

see

GetNodeProps

Optional hotkey

hotkey: string | string[]

Hotkeys to listen to trigger a plugin action.

Optional overrideProps

overrideProps: GetNodeProps | NodeProps

If it's a function, its return value will override the component props. If it's an object, it will override the component props.

Optional syntax

syntax: boolean

Optional syntaxPopularFirst

syntaxPopularFirst: boolean

type

type: string

Element or mark type.

default

plugin key

Generated using TypeDoc