Added hook to catch edit events

This commit is contained in:
Egil Moeller 2012-05-30 17:18:43 +02:00
parent 357ca73a99
commit 27f25b8c61
1 changed files with 14 additions and 0 deletions

View File

@ -341,6 +341,11 @@ function Ace2Inner(){
return rep;
};
editorInfo.ace_getAuthor = function()
{
return thisAuthor;
}
var currentCallStack = null;
function inCallStack(type, action)
@ -439,6 +444,14 @@ function Ace2Inner(){
try
{
result = action();
hooks.callAll('aceEditEvent', {
callstack: currentCallStack,
editorInfo: editorInfo,
rep: rep,
documentAttributeManager: documentAttributeManager
});
//console.log("Just did action for: "+type);
cleanExit = true;
}
@ -522,6 +535,7 @@ function Ace2Inner(){
{
return rep.lines.atOffset(charOffset).key;
}
function dispose()
{