Options
All
  • Public
  • Public/Protected
  • All
Menu

Module roosterjs-content-model-core

Index

Functions

createModelFromHtml

exportContent

  • Export string content of editor

    Parameters

    • editor: IEditor

      The editor to get content from

    • mode: ExportContentMode = 'HTML'

      Mode of content to export. It supports:

      • HTML: Export HTML content. If there are entities, this will cause EntityOperation event with option = 'replaceTemporaryContent' to get a dehydrated entity
      • PlainText: Export plain text content
      • PlainTextFast: Export plain text using editor's textContent property directly
    • Optional options: ModelToDomOption

      @optional Options for Model to DOM conversion

    Returns string

paste

redo

undo

Generated using TypeDoc