Include usage example for aceRegisterNonScrollableEditEvents

pull/2944/head
Luiza Pagliari 2016-06-20 06:31:11 -03:00
parent 3fb695a7a0
commit 69ac8e1722
1 changed files with 7 additions and 0 deletions

View File

@ -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