summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLuiza Pagliari <lpagliari@gmail.com>2016-06-20 06:31:11 -0300
committerLuiza Pagliari <lpagliari@gmail.com>2016-06-20 06:31:11 -0300
commit69ac8e172278dd337ab61a8c0a53739db7d6a559 (patch)
tree800ace79780e63ee24d0a78c4d5e2419daf6ec98 /doc
parent3fb695a7a0f93904fab48d5ad4ffd5f9131ba436 (diff)
downloadetherpad-lite-69ac8e172278dd337ab61a8c0a53739db7d6a559.zip
Include usage example for aceRegisterNonScrollableEditEvents
Diffstat (limited to 'doc')
-rw-r--r--doc/api/hooks_client-side.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/hooks_client-side.md b/doc/api/hooks_client-side.md
index 9d9cae25..9af03569 100644
--- a/doc/api/hooks_client-side.md
+++ b/doc/api/hooks_client-side.md
@@ -141,6 +141,13 @@ Things in context: None
When aceEditEvent (documented above) finishes processing the event, it scrolls the viewport to make caret visible to the user, but if you don't want that behavior to happen you can use this hook to register which edit events should not scroll viewport. The return value of this hook should be a list of event names.
+Example:
+```
+exports.aceRegisterNonScrollableEditEvents = function(){
+ return [ 'repaginate', 'updatePageCount' ];
+}
+```
+
## aceRegisterBlockElements
Called from: src/static/js/ace2_inner.js