tuil
ReferencePackages@mwillbanks/tuil-editorAPI

RichEditorDocument

interface exported by @mwillbanks/tuil-editor.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-editor.

export interface RichEditorDocument {
  snapshot(): RichDocument;
  dispatch(transaction: RichTransaction): RichDocument;
  undo(): boolean;
  redo(): boolean;
  serialize(format?: "json" | "markdown"): string;
}

Members

MemberTypeRequiredDescriptionRelated types
snapshot() => RichDocumentYesThe snapshot member uses the () => RichDocument contract.RichDocument
dispatch(transaction: RichTransaction) => RichDocumentYesThe dispatch member uses the (transaction: RichTransaction) => RichDocument contract.RichDocument, RichTransaction
undo() => booleanYesThe undo member uses the () => boolean contract.
redo() => booleanYesThe redo member uses the () => boolean contract.
serialize(format?: "json" | "markdown") => stringYesThe serialize member uses the (format?: "json" | "markdown") => string contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-editor

On this page