mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Include usage example for aceRegisterNonScrollableEditEvents
This commit is contained in:
parent
3fb695a7a0
commit
69ac8e1722
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
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
|
## aceRegisterBlockElements
|
||||||
Called from: src/static/js/ace2_inner.js
|
Called from: src/static/js/ace2_inner.js
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue