The PostNodeBuilder is used to create new Post primitives, such as a MarkupSection, a CardSection, a Markup, etc. Every instance of an Editor has its own builder instance. The builder can be used inside an run callback to programmatically create new Post primitives to insert into the document. A PostNodeBuilder should be read from the Editor, not instantiated on its own.

Hierarchy

  • PostNodeBuilder

Constructors

Properties

markupCache: Dict<Markup> = {}

Methods

  • Parameters

    • name: string
    • value: string = ''
    • payload: AtomPayload = {}
    • markups: Markup[] = []

    Returns default

  • Parameters

    • name: string
    • payload: CardPayload = {}

    Returns default<CardPayload>

  • Parameters

    • tagName: string = DEFAULT_LIST_SECTION_TAG_NAME
    • items: default[] = []
    • attributes: {} = {}

      Returns default

    • Parameters

      • type: LIST_ITEM
      • tagName: string
      • markers: default[]

      Returns default

    • Parameters

      • type: MARKUP_SECTION
      • tagName: string
      • markers: default[]

      Returns default

    • Parameters

      • type: Type
      • tagName: string
      • markers: default[]

      Returns never

    • Parameters

      • tagName: string = DEFAULT_MARKUP_SECTION_TAG_NAME
      • markers: default[] = []
      • isGenerated: boolean = false
      • attributes: {} = {}

        Returns default

      • Returns

        A new, blank post

        Parameters

        • sections: Cloneable<default>[] = []

        Returns default

      Generated using TypeDoc