mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Update docs
This commit is contained in:
parent
80e45e1192
commit
33ecc1d8df
1 changed files with 11 additions and 1 deletions
|
@ -14,7 +14,17 @@ Example:
|
||||||
var orderedlist = toolbar.button({
|
var orderedlist = toolbar.button({
|
||||||
command: "insertorderedlist",
|
command: "insertorderedlist",
|
||||||
localizationId: "pad.toolbar.ol.title",
|
localizationId: "pad.toolbar.ol.title",
|
||||||
class: "buttonicon-insertorderedlist"
|
class: "buttonicon buttonicon-insertorderedlist"
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also create buttons with text:
|
||||||
|
|
||||||
|
```
|
||||||
|
var myButton = toolbar.button({
|
||||||
|
command: "myButton",
|
||||||
|
localizationId: "myPlugin.toolbar.myButton",
|
||||||
|
class: "buttontext"
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue