Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NodeIdPlugin

Hierarchy

Index

Properties

Optional allow

allow: string | string[]

List of types that are valid. If empty or undefined - allow all.

Optional exclude

exclude: string | string[]

List of types that are invalid.

Optional filter

filter: <N>(entry: TNodeEntry<N>) => boolean

Query the node entry.

Type declaration

Optional filterText

filterText: boolean

Filter Text nodes.

default

true

Optional idCreator

idCreator: Function

ID factory, e.g. uuid

default

() => Date.now()

Optional idKey

idKey: string

Node key to store the id.

default

'id'

Optional reuseId

reuseId: boolean

Reuse ids on undo/redo and copy/pasting if not existing in the document. This is disabled by default to avoid duplicate ids across documents.

default

false

Generated using TypeDoc