Options
All
  • Public
  • Public/Protected
  • All
Menu

ParagraphMap is used to map a paragraph marker to a paragraph in the model.

Hierarchy

  • ParagraphMap

Index

Methods

applyMarkerToDom

assignMarkerToModel

  • When create content model from DOM, assign a marker to a paragraph in the model. This marker is used to identify the paragraph in the model. If the DOM element does not have a marker, a new marker will be generated and assigned to the paragraph and write back to DOM.

    Parameters

    • element: HTMLElement

      The DOM element to assign marker to

    • paragraph: ContentModelParagraph

      The paragraph in the model to assign marker to

    Returns void

clear

  • clear(): void

Generated using TypeDoc