File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1034,9 +1034,10 @@ declare module AceAjax {
1034
1034
* Event sessions dealing with the mouse and keyboard are bubbled up from `Document` to the `Editor`, which decides what to do with them.
1035
1035
**/
1036
1036
export interface Editor {
1037
-
1038
- addEventListener ( ev : string , callback : Function ) ;
1039
1037
1038
+ addEventListener ( ev : 'change' , callback : ( ev : EditorChangeEvent ) => any ) ;
1039
+ addEventListener ( ev : string , callback : Function ) ;
1040
+
1040
1041
inMultiSelectMode : boolean ;
1041
1042
1042
1043
selectMoreLines ( n : number ) ;
@@ -1712,6 +1713,13 @@ declare module AceAjax {
1712
1713
**/
1713
1714
new ( renderer : VirtualRenderer , session ?: IEditSession ) : Editor ;
1714
1715
}
1716
+
1717
+ interface EditorChangeEvent {
1718
+ start : Position ;
1719
+ end : Position ;
1720
+ action : string ; // insert, remove
1721
+ lines : any [ ] ;
1722
+ }
1715
1723
1716
1724
////////////////////////////////
1717
1725
/// PlaceHolder
You can’t perform that action at this time.
0 commit comments