Skip to main content

TextChange

ai-research-agent / editor/document/TextChange

Functions

hasFormat()

function hasFormat(format, attributes): boolean

Parameters

ParameterType

format

default

attributes

default

Returns

boolean


intersect()

function intersect(value, other): object

Parameters

ParameterType

value

object

other

object

Returns

object

Classes

default

Extended by

Accessors

contentChanged
Get Signature
get contentChanged(): boolean
Returns

boolean

selectionChanged
Get Signature
get selectionChanged(): boolean
Returns

boolean

Constructors

new default()
new default(
doc,
delta,
selection?,
activeFormats?): default
Parameters
ParameterType

doc

null | default

delta

default

selection?

null | EditorRange

activeFormats?

default

Returns

default

Methods

apply()
apply(): void
Returns

void

clone()
clone(): default
Returns

default

delete()
delete(range, options?): default
Parameters
ParameterType

range

null | EditorRange

options?

{ dontFixNewline: boolean; }

options.dontFixNewline?

boolean

Returns

default

formatLine()
formatLine(
range,
format,
decoration?): default
Parameters
ParameterType

range

number | EditorRange

format

default

decoration?

boolean

Returns

default

formatText()
formatText(range, format?): default
Parameters
ParameterType

range

EditorRange

format?

default

Returns

default

insert()
insert(
at,
insert,
format?,
options?): default
Parameters
ParameterType

at

number

insert

string | object

format?

default

options?

{ dontFixNewline: boolean; }

options.dontFixNewline?

boolean

Returns

default

insertContent()
insertContent(at, content): default
Parameters
ParameterType

at

number

content

default

Returns

default

isFor()
isFor(doc): boolean
Parameters
ParameterType

doc

default

Returns

boolean

removeFormat()
removeFormat(range): default
Parameters
ParameterType

range

EditorRange

Returns

default

select()
select(at): default
Parameters
ParameterType

at

null | number | EditorRange

Returns

default

setActiveFormats()
setActiveFormats(activeFormats): default
Parameters
ParameterType

activeFormats

default

Returns

default

setDelta()
setDelta(delta): default
Parameters
ParameterType

delta

default

Returns

default

toggleLineFormat()
toggleLineFormat(range, format): default
Parameters
ParameterType

range

number | EditorRange

format

default

Returns

default

toggleTextFormat()
toggleTextFormat(range, format): default
Parameters
ParameterType

range

EditorRange

format

default

Returns

default

transform()
transform(change, priority?): default
Parameters
ParameterType

change

default

priority?

boolean

Returns

default

transformAgainst()
transformAgainst(delta, priority?): default
Parameters
ParameterType

delta

default | default

priority?

boolean

Returns

default

transformSelection()
transformSelection(selection, priority?): null | EditorRange
Parameters
ParameterType

selection

null | EditorRange

priority?

boolean

Returns

null | EditorRange

Properties

activeFormats?
optional activeFormats: default;
delta
delta: default;
doc
doc: null | default;
selection?
optional selection: null | EditorRange;