pass pad in postAceInit hook
no way for plugins to access current pad otherwise.pull/1815/head
parent
a554552bed
commit
bc5dc74f90
|
@ -126,6 +126,7 @@ Called from: src/static/js/pad.js
|
||||||
Things in context:
|
Things in context:
|
||||||
|
|
||||||
1. ace - the ace object that is applied to this editor.
|
1. ace - the ace object that is applied to this editor.
|
||||||
|
2. pad - the pad object of the current pad.
|
||||||
|
|
||||||
There doesn't appear to be any example available of this particular hook being used, but it gets fired after the editor is all set up.
|
There doesn't appear to be any example available of this particular hook being used, but it gets fired after the editor is all set up.
|
||||||
|
|
||||||
|
|
|
@ -524,7 +524,7 @@ var pad = {
|
||||||
if(padcookie.getPref("showAuthorshipColors") == false){
|
if(padcookie.getPref("showAuthorshipColors") == false){
|
||||||
pad.changeViewOption('showAuthorColors', false);
|
pad.changeViewOption('showAuthorColors', false);
|
||||||
}
|
}
|
||||||
hooks.aCallAll("postAceInit", {ace: padeditor.ace});
|
hooks.aCallAll("postAceInit", {ace: padeditor.ace, pad: pad});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dispose: function()
|
dispose: function()
|
||||||
|
|
Loading…
Reference in New Issue