Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UsePlateEffectsOptions<T>

usePlateEffects options

Type parameters

Hierarchy

  • Partial<Pick<PlateState<T>, "editor" | "value" | "enabled" | "plugins">>

Index

Properties

Optional components

components: Record<string, PlatePluginComponent>

Components stored by plugin key. These will be merged into options.

see

EditorId

Optional editor

editor: T

Slate editor reference.

default

pipe(createEditor(), withPlate({ id, plugins, options, components }))

Optional enabled

enabled: boolean

If true, plate will create the editor with withPlate. If false, plate will remove the editor from the store.

default

true

Optional id

Optional initialValue

initialValue: any[]

Initial value of the editor.

default

[{ children: [{ text: '' }]}]

Optional normalizeInitialValue

normalizeInitialValue: boolean

When true, it will normalize the initial value passed to the editor once it gets created. This is useful when adding normalization rules on already existing content.

default

false

Optional options

Optional plugins

plugins: PlatePlugin<T>[]

Plate plugins.

default

[createReactPlugin(), createHistoryPlugin()]

Optional value

value: any[]

Editor value.

default

[{ children: [{ text: '' }]}]

Generated using TypeDoc