Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
ace
Ace
Document
Interface Document
interface
Document
{
addEventListener
(
name
,
callback
,
capturing
?
)
:
void
;
applyDelta
(
delta
,
doNotValidate
?
)
:
void
;
applyDeltas
(
deltas
)
:
void
;
clippedPos
(
row
,
column
)
:
Ace
.
Point
;
clonePos
(
pos
)
:
Ace
.
Point
;
createAnchor
(
row
,
column
)
:
Ace
.
Anchor
;
getAllLines
(
)
:
string
[]
;
getLength
(
)
:
number
;
getLine
(
row
)
:
string
;
getLines
(
firstRow
,
lastRow
)
:
string
[]
;
getLinesForRange
(
range
)
:
string
[]
;
getNewLineCharacter
(
)
:
string
;
getNewLineMode
(
)
:
Ace
.
NewLineMode
;
getTextRange
(
range
)
:
string
;
getValue
(
)
:
string
;
indexToPosition
(
index
,
startRow
)
:
Ace
.
Position
;
insert
(
position
,
text
)
:
Ace
.
Position
;
insert
(
position
,
text
)
:
Ace
.
Position
;
insertFullLines
(
row
,
lines
)
:
void
;
insertInLine
(
position
,
text
)
:
Ace
.
Position
;
insertMergedLines
(
position
,
lines
)
:
Ace
.
Point
;
insertNewLine
(
position
)
:
Ace
.
Point
;
isNewLine
(
text
)
:
boolean
;
off
(
name
,
callback
)
:
void
;
on
(
name
,
callback
,
capturing
?
)
:
void
;
once
(
name
,
callback
)
:
void
;
pos
(
row
,
column
)
:
Ace
.
Point
;
positionToIndex
(
pos
,
startRow
?
)
:
number
;
remove
(
range
)
:
Ace
.
Position
;
removeAllListeners
(
name
?
)
:
void
;
removeDefaultHandler
(
name
,
callback
)
:
void
;
removeEventListener
(
name
,
callback
)
:
void
;
removeFullLines
(
firstRow
,
lastRow
)
:
string
[]
;
removeInLine
(
row
,
startColumn
,
endColumn
)
:
Ace
.
Position
;
removeListener
(
name
,
callback
)
:
void
;
removeNewLine
(
row
)
:
void
;
replace
(
range
,
text
)
:
Ace
.
Position
;
revertDelta
(
delta
)
:
void
;
revertDeltas
(
deltas
)
:
void
;
setDefaultHandler
(
name
,
callback
)
:
void
;
setNewLineMode
(
newLineMode
)
:
void
;
setValue
(
text
)
:
void
;
}
Hierarchy (
view full
)
Ace
.
EventEmitter
Document
Index
Methods
add
Event
Listener
apply
Delta
apply
Deltas
clipped
Pos
clone
Pos
create
Anchor
get
All
Lines
get
Length
get
Line
get
Lines
get
Lines
For
Range
get
New
Line
Character
get
New
Line
Mode
get
Text
Range
get
Value
index
To
Position
insert
insert
Full
Lines
insert
In
Line
insert
Merged
Lines
insert
New
Line
is
New
Line
off
on
once
pos
position
To
Index
remove
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Full
Lines
remove
In
Line
remove
Listener
remove
New
Line
replace
revert
Delta
revert
Deltas
set
Default
Handler
set
New
Line
Mode
set
Value
Methods
add
Event
Listener
add
Event
Listener
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
apply
Delta
apply
Delta
(
delta
,
doNotValidate
?
)
:
void
Parameters
delta
:
Ace
.
Delta
Optional
doNotValidate
:
boolean
Returns
void
apply
Deltas
apply
Deltas
(
deltas
)
:
void
Parameters
deltas
:
Ace
.
Delta
[]
Returns
void
clipped
Pos
clipped
Pos
(
row
,
column
)
:
Ace
.
Point
Parameters
row
:
number
column
:
number
Returns
Ace
.
Point
clone
Pos
clone
Pos
(
pos
)
:
Ace
.
Point
Parameters
pos
:
Ace
.
Point
Returns
Ace
.
Point
create
Anchor
create
Anchor
(
row
,
column
)
:
Ace
.
Anchor
Parameters
row
:
number
column
:
number
Returns
Ace
.
Anchor
get
All
Lines
get
All
Lines
(
)
:
string
[]
Returns
string
[]
get
Length
get
Length
(
)
:
number
Returns
number
get
Line
get
Line
(
row
)
:
string
Parameters
row
:
number
Returns
string
get
Lines
get
Lines
(
firstRow
,
lastRow
)
:
string
[]
Parameters
firstRow
:
number
lastRow
:
number
Returns
string
[]
get
Lines
For
Range
get
Lines
For
Range
(
range
)
:
string
[]
Parameters
range
:
Ace
.
Range
Returns
string
[]
get
New
Line
Character
get
New
Line
Character
(
)
:
string
Returns
string
get
New
Line
Mode
get
New
Line
Mode
(
)
:
Ace
.
NewLineMode
Returns
Ace
.
NewLineMode
get
Text
Range
get
Text
Range
(
range
)
:
string
Parameters
range
:
Ace
.
Range
Returns
string
get
Value
get
Value
(
)
:
string
Returns
string
index
To
Position
index
To
Position
(
index
,
startRow
)
:
Ace
.
Position
Parameters
index
:
number
startRow
:
number
Returns
Ace
.
Position
insert
insert
(
position
,
text
)
:
Ace
.
Position
Parameters
position
:
Ace
.
Position
text
:
string
Returns
Ace
.
Position
insert
(
position
,
text
)
:
Ace
.
Position
Parameters
position
:
{
column
:
number
;
row
:
number
;
}
column
:
number
row
:
number
text
:
string
Returns
Ace
.
Position
insert
Full
Lines
insert
Full
Lines
(
row
,
lines
)
:
void
Parameters
row
:
number
lines
:
string
[]
Returns
void
insert
In
Line
insert
In
Line
(
position
,
text
)
:
Ace
.
Position
Parameters
position
:
Ace
.
Position
text
:
string
Returns
Ace
.
Position
insert
Merged
Lines
insert
Merged
Lines
(
position
,
lines
)
:
Ace
.
Point
Parameters
position
:
Ace
.
Position
lines
:
string
[]
Returns
Ace
.
Point
insert
New
Line
insert
New
Line
(
position
)
:
Ace
.
Point
Parameters
position
:
Ace
.
Point
Returns
Ace
.
Point
is
New
Line
is
New
Line
(
text
)
:
boolean
Parameters
text
:
string
Returns
boolean
off
off
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
on
on
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
once
once
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
pos
pos
(
row
,
column
)
:
Ace
.
Point
Parameters
row
:
number
column
:
number
Returns
Ace
.
Point
position
To
Index
position
To
Index
(
pos
,
startRow
?
)
:
number
Parameters
pos
:
Ace
.
Position
Optional
startRow
:
number
Returns
number
remove
remove
(
range
)
:
Ace
.
Position
Parameters
range
:
Ace
.
Range
Returns
Ace
.
Position
remove
All
Listeners
remove
All
Listeners
(
name
?
)
:
void
Parameters
Optional
name
:
string
Returns
void
remove
Default
Handler
remove
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Event
Listener
remove
Event
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Full
Lines
remove
Full
Lines
(
firstRow
,
lastRow
)
:
string
[]
Parameters
firstRow
:
number
lastRow
:
number
Returns
string
[]
remove
In
Line
remove
In
Line
(
row
,
startColumn
,
endColumn
)
:
Ace
.
Position
Parameters
row
:
number
startColumn
:
number
endColumn
:
number
Returns
Ace
.
Position
remove
Listener
remove
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
New
Line
remove
New
Line
(
row
)
:
void
Parameters
row
:
number
Returns
void
replace
replace
(
range
,
text
)
:
Ace
.
Position
Parameters
range
:
Ace
.
Range
text
:
string
Returns
Ace
.
Position
revert
Delta
revert
Delta
(
delta
)
:
void
Parameters
delta
:
Ace
.
Delta
Returns
void
revert
Deltas
revert
Deltas
(
deltas
)
:
void
Parameters
deltas
:
Ace
.
Delta
[]
Returns
void
set
Default
Handler
set
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
set
New
Line
Mode
set
New
Line
Mode
(
newLineMode
)
:
void
Parameters
newLineMode
:
Ace
.
NewLineMode
Returns
void
set
Value
set
Value
(
text
)
:
void
Parameters
text
:
string
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
add
Event
Listener
apply
Delta
apply
Deltas
clipped
Pos
clone
Pos
create
Anchor
get
All
Lines
get
Length
get
Line
get
Lines
get
Lines
For
Range
get
New
Line
Character
get
New
Line
Mode
get
Text
Range
get
Value
index
To
Position
insert
insert
Full
Lines
insert
In
Line
insert
Merged
Lines
insert
New
Line
is
New
Line
off
on
once
pos
position
To
Index
remove
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Full
Lines
remove
In
Line
remove
Listener
remove
New
Line
replace
revert
Delta
revert
Deltas
set
Default
Handler
set
New
Line
Mode
set
Value
Ace API Reference
ace
src
ace
anchor
apply_delta
autocomplete
background_tokenizer
bidihandler
clipboard
commands
command_manager
default_commands
incremental_search_commands
multi_select_commands
occur_commands
config
css/editor-css
document
edit_session
editor
ext
Loading...
Generated using
TypeDoc