@umbraco-cms/backoffice
    Preparing search index...

    Interface DecorationType

    prosemirror-view does not export the type property of Decoration. So, this defines the DecorationType interface to include the type property.

    interface DecorationType {
        attrs: DecorationAttrs;
        spec: any;
        destroy(dom: Node): void;
        eq(other: DecorationType): boolean;
        map(
            mapping: Mappable,
            span: Decoration,
            offset: number,
            oldOffset: number,
        ): null | Decoration;
        valid(node: Node, span: Decoration): boolean;
    }
    Index

    Properties

    Methods

    Properties

    attrs: DecorationAttrs
    spec: any

    Methods

    • Parameters

      • dom: Node

      Returns void

    • Parameters

      • mapping: Mappable
      • span: Decoration
      • offset: number
      • oldOffset: number

      Returns null | Decoration

    • Parameters

      • node: Node
      • span: Decoration

      Returns boolean