Skip to main content

copy

ai-research-agent / editor/modules/copy

Functions

copy()

function copy(editor, options): object

Parameters

ParameterTypeDefault value

editor

Editor

undefined

options

CopyOptions

defaultOptions

Returns

object

NameType
commands{ getCopy: (selection?) => object; }
destroy()
init()

Interfaces

CopyData

Properties

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

CopyOptions

Properties

copyHTML?
optional copyHTML: boolean;
copyPlainText?
optional copyPlainText: boolean;