Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides a chance for plugin to change the content before it is pasted into editor.

Hierarchy

Index

Properties

clipboardData

clipboardData: ClipboardData

An object contains all related data for pasting

Optional eventDataCache

eventDataCache: {}

An optional event cache. This will be consumed by event cache API to store some expensive calculation result. So that for the same event across plugins, the result doesn't need to be calculated again

Type declaration

  • [key: string]: any

eventType

eventType: BeforePaste

Type of this event

fragment

fragment: DocumentFragment

HTML Document Fragment which will be inserted into content

htmlAfter

htmlAfter: string

Stripped HTML string after "EndFragment" comment

htmlAttributes

htmlAttributes: Record<string, string>

Attributes of the root "HTML" tag

htmlBefore

htmlBefore: string

Stripped HTML string before "StartFragment" comment

Readonly pasteType

Paste type option (as plain text, merge format, normal, as image)

sanitizingOption

sanitizingOption: Required<HtmlSanitizerOptions>

Html sanitizing options. This will be used for sanitizing the html content before paste

Generated using TypeDoc