Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SPEditor

Hierarchy

Index

Properties

addMark

addMark: (key: string, value: any) => void

Type declaration

    • (key: string, value: any): void
    • Parameters

      • key: string
      • value: any

      Returns void

apply

apply: (operation: Operation) => void

Type declaration

    • (operation: Operation): void
    • Parameters

      • operation: Operation

      Returns void

children

children: Descendant[] & any[]

deleteBackward

deleteBackward: (unit: "block" | "character" | "word" | "line") => void

Type declaration

    • (unit: "block" | "character" | "word" | "line"): void
    • Parameters

      • unit: "block" | "character" | "word" | "line"

      Returns void

deleteForward

deleteForward: (unit: "block" | "character" | "word" | "line") => void

Type declaration

    • (unit: "block" | "character" | "word" | "line"): void
    • Parameters

      • unit: "block" | "character" | "word" | "line"

      Returns void

deleteFragment

deleteFragment: (direction?: "forward" | "backward") => void

Type declaration

    • (direction?: "forward" | "backward"): void
    • Parameters

      • Optional direction: "forward" | "backward"

      Returns void

getFragment

getFragment: () => Descendant[]

Type declaration

    • (): Descendant[]
    • Returns Descendant[]

id

id: string

insertBreak

insertBreak: () => void

Type declaration

    • (): void
    • Returns void

insertFragment

insertFragment: (fragment: Node[]) => void

Type declaration

    • (fragment: Node[]): void
    • Parameters

      • fragment: Node[]

      Returns void

insertNode

insertNode: (node: Node) => void

Type declaration

    • (node: Node): void
    • Parameters

      • node: Node

      Returns void

insertText

insertText: (text: string) => void

Type declaration

    • (text: string): void
    • Parameters

      • text: string

      Returns void

isInline

isInline: (element: BaseElement) => boolean

Type declaration

    • (element: BaseElement): boolean
    • Parameters

      • element: BaseElement

      Returns boolean

isVoid

isVoid: (element: BaseElement) => boolean

Type declaration

    • (element: BaseElement): boolean
    • Parameters

      • element: BaseElement

      Returns boolean

key

key: any

marks

marks: null | Omit<BaseText, "text">

normalizeNode

normalizeNode: (entry: NodeEntry<Node>) => void

Type declaration

    • (entry: NodeEntry<Node>): void
    • Parameters

      • entry: NodeEntry<Node>

      Returns void

onChange

onChange: () => void

Type declaration

    • (): void
    • Returns void

operations

operations: Operation[]

options

removeMark

removeMark: (key: string) => void

Type declaration

    • (key: string): void
    • Parameters

      • key: string

      Returns void

selection

selection: BaseSelection

Generated using TypeDoc