Options
All
  • Public
  • Public/Protected
  • All
Menu

Paste plugin, handles BeforePaste event and reformat some special content, including:

  1. Content copied from Word
  2. Content copied from Excel
  3. Content copied from Word Online or OneNote Online

Hierarchy

  • Paste

Implements

Index

Constructors

constructor

  • new Paste(unknownTagReplacement?: string, convertSingleImageBody?: boolean): Paste
  • Construct a new instance of Paste class

    Parameters

    • unknownTagReplacement: string = 'SPAN'

      Replace solution of unknown tags, default behavior is to replace with SPAN

    • convertSingleImageBody: boolean = false

      When enabled, if clipboard HTML contains a single image, we reuse the image without modifying the src attribute. When disabled, pasted image src attribute will use the dataUri from clipboard data -- By Default disabled.

    Returns Paste

Methods

dispose

  • dispose(): void

getName

  • getName(): string

initialize

  • initialize(editor: IEditor): void

onPluginEvent

Generated using TypeDoc