mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
docs
This commit is contained in:
parent
f11bdc1b44
commit
b94a525e07
2 changed files with 33 additions and 0 deletions
|
@ -264,6 +264,23 @@ exports.stylesForExport = function(hook, padId, cb){
|
|||
}
|
||||
```
|
||||
|
||||
## aceAttribClasses
|
||||
Called from: src/static/js/linestylefilter.js
|
||||
|
||||
Things in context:
|
||||
1. Attributes - Object of Attributes
|
||||
|
||||
This hook is called when attributes are investigated on a line. It is useful if you want to add another attribute type or property type to a pad.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
exports.aceAttribClasses = function(hook_name, attr, cb){
|
||||
attr.sub = 'tag:sub';
|
||||
cb(attr);
|
||||
}
|
||||
```
|
||||
|
||||
## exportFileName
|
||||
Called from src/node/handler/ExportHandler.js
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue