Rich text / foldkit-mixins-richtext

BlockHandleInput

interface · packages/mixins-richtext/src/handle.ts:25

interface BlockHandleInput<Message> {
  readonly document: RichText.Document
  readonly hostId: string
  readonly node: RichText.NodeId
  readonly wrap: (message: EditorEvent) => Message
}

Members

BlockHandleInput.document

property · packages/mixins-richtext/src/handle.ts:26

readonly document: RichText.Document

BlockHandleInput.hostId

property · packages/mixins-richtext/src/handle.ts:28

readonly hostId: string

The editor host's id, whose blocks a drag measures.

BlockHandleInput.node

property · packages/mixins-richtext/src/handle.ts:30

readonly node: RichText.NodeId

The block the handle stands for.

BlockHandleInput.wrap

property · packages/mixins-richtext/src/handle.ts:32

readonly wrap: (message: EditorEvent) => Message

An editor Message as this caller's, usually its edited(...) wrapper.