diff options
author | John McLear <john@mclear.co.uk> | 2015-10-22 16:19:07 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-10-22 16:19:07 +0100 |
commit | c337a0585c7c5ec9de8813af9770f1dfd704c5f3 (patch) | |
tree | 5cfe35bcecdd97abc9a1b82d183dc345567bdd92 /src | |
parent | 08c6e3e29f264d0900767ad27fc0d41420af4a26 (diff) | |
parent | 008d4e653c8075299444f39f1376e12571ae15fb (diff) | |
download | etherpad-lite-c337a0585c7c5ec9de8813af9770f1dfd704c5f3.zip |
Merge pull request #2724 from xavidotron/develop
Add a aceSelectionChanged hook to allow plugins to react when the cursor moves
Diffstat (limited to 'src')
-rw-r--r-- | src/static/js/ace2_inner.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 55a1b5ac..d912dfb1 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -2901,6 +2901,11 @@ function Ace2Inner(){ rep.selFocusAtStart = newSelFocusAtStart; currentCallStack.repChanged = true; + hooks.callAll('aceSelectionChanged', { + rep: rep, + documentAttributeManager: documentAttributeManager, + }); + return true; //console.log("selStart: %o, selEnd: %o, focusAtStart: %s", rep.selStart, rep.selEnd, //String(!!rep.selFocusAtStart)); |