Skip to main content

paste

ai-research-agent / editor/modules/paste

Functions

paste()

function paste(editor, options?): object

Parameters

ParameterType

editor

Editor

options?

PasteModuleOptions

Returns

object

NameType
commands{ paste: (__namedParameters) => void; }
destroy()
init()

Classes

PasteEvent

Extends

  • Event

Constructors

new PasteEvent()
new PasteEvent(type, init): PasteEvent
Parameters
ParameterType

type

string

init

PasteEventInit

Returns

PasteEvent

Overrides

Event.constructor

Properties

delta
delta: default;
html?
optional html: string;
text?
optional text: string;

Interfaces

PasteEventInit

Extends

  • EventInit

Properties

delta
delta: default;
html?
optional html: string;
text?
optional text: string;

PasteModuleOptions

Properties

allowHTMLPaste?
optional allowHTMLPaste: boolean;
htmlParser()?
optional htmlParser: (editor, html) => default;
Parameters
ParameterType

editor

Editor

html

string

Returns

default


PasteOptions

Properties

html?
optional html: string;
selection?
optional selection: null | EditorRange;
text?
optional text: string;