mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
pad: Add clientVars
to postAceInit
hook context
This allows plugins to avoid the `clientVars` global variable.
This commit is contained in:
parent
b683cdfe0f
commit
0d65dc8a44
3 changed files with 11 additions and 2 deletions
|
@ -501,7 +501,7 @@ const pad = {
|
|||
|
||||
$('#editorcontainer').addClass('initialized');
|
||||
|
||||
hooks.aCallAll('postAceInit', {ace: padeditor.ace, pad});
|
||||
hooks.aCallAll('postAceInit', {ace: padeditor.ace, clientVars, pad});
|
||||
};
|
||||
|
||||
// order of inits is important here:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue