ep_tasklist プラグインから - https://raw.githubusercontent.com/JohnMcLear/ep_tasklist/master/static/js/ace_inner.jsに若干の変更を加えて、達成しようとしていることの参照点としてこれを使用します。
クリック リスナー イベントを内部のドキュメント本文にバインドするだけです。
exports.postAceInit = function(hook, context){
context.ace.callWithAce(function(ace){
var doc = ace.ace_getDocument();
$(doc).find('#innerdocbody').on("click", underscore(SOMEFUNCTIONINCORRECTCONTEXT).bind(ace));
}, 'myPlugin', true);
}
アンダースコアバインド機能を使用する必要がない場合は、ace のコンテキストも保持する必要があると思いました。IE
exports.postAceInit = function(hook, context){
context.ace.callWithAce(function(ace){
var doc = ace.ace_getDocument();
$(doc).find('#innerdocbody').on("click", function(){
console.log("hello world")
});
}, 'myPlugin', true);
}