Options
All
  • Public
  • Public/Protected
  • All
Menu

A temporary event type to be compatible with both legacy plugin and EditorAdapter

Hierarchy

Index

Properties

clipboardData

clipboardData: ClipboardData

An object contains all related data for pasting

Optional customizedMerge

customizedMerge: MergePastedContentFunc

customizedMerge Customized merge function to use when merging the paste fragment into the editor

Readonly domToModelOption

domToModel Options to use when creating the content model from the paste fragment

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