Methods
add
- add(delta, allowMerge, session): void
Returns void
addSelection
- addSelection(selection, rev?): void
Parameters
selection: string
Optional
rev: number
Returns void
addSession
- addSession(session): void
Returns void
bookmark
- bookmark(rev?): void
Returns void
canRedo
- canRedo(): boolean
Returns boolean
canUndo
- canUndo(): boolean
Returns boolean
fromJSON
- fromJSON(json): void
Returns void
getDeltas
- getDeltas(from, to?): Ace.Delta[]
Parameters
from: number
Optional
to: number
getRevision
- getRevision(): number
Returns number
getSelection
- getSelection(rev, after?): {
rev: number;
value: string;
} Parameters
rev: number
Optional
after: boolean
Returns {
rev: number;
value: string;
}
hasRedo
- hasRedo(): boolean
Returns boolean
hasUndo
- hasUndo(): boolean
Returns boolean
isAtBookmark
- isAtBookmark(): boolean
Returns boolean
isClean
- isClean(): boolean
Returns boolean
markClean
- markClean(rev?): void
Returns void
markIgnored
- markIgnored(from, to?): void
Parameters
from: number
Optional
to: number
Returns void
redo
- redo(session, dontSelect?): void
Parameters
Optional
dontSelect: boolean
Returns void
reset
- reset(): void
Returns void
startNewGroup
- startNewGroup(): void
Returns void
toJSON
- toJSON(): object
Returns object
undo
- undo(session, dontSelect?): void
Parameters
Optional
dontSelect: boolean
Returns void