mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
docs for setHTML
This commit is contained in:
parent
e152c477c7
commit
9e1dfc9487
1 changed files with 10 additions and 0 deletions
|
@ -283,6 +283,16 @@ sets the text of a pad
|
||||||
* `{code: 1, message:"padID does not exist", data: null}`
|
* `{code: 1, message:"padID does not exist", data: null}`
|
||||||
* `{code: 1, message:"text too long", data: null}`
|
* `{code: 1, message:"text too long", data: null}`
|
||||||
|
|
||||||
|
#### setHTML(padID, html)
|
||||||
|
* API >= 1
|
||||||
|
|
||||||
|
sets the text of a pad based on HTML, HTML must be well formed. Malformed HTML will send a warning to the API log
|
||||||
|
|
||||||
|
*Example returns:*
|
||||||
|
* `{code: 0, message:"ok", data: null}`
|
||||||
|
* `{code: 1, message:"padID does not exist", data: null}`
|
||||||
|
|
||||||
|
|
||||||
#### getHTML(padID, [rev])
|
#### getHTML(padID, [rev])
|
||||||
* API >= 1
|
* API >= 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue