diff options
author | John McLear <john@mclear.co.uk> | 2013-02-12 23:44:09 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2013-02-12 23:44:09 +0000 |
commit | 9e1dfc9487669884a6be5fe606f8d8259de065f3 (patch) | |
tree | fac12be49cd82c73a59f8fcb93456e5b11c372a4 | |
parent | e152c477c7c9fbc65e6d7da6131011852f60bf34 (diff) | |
download | etherpad-lite-9e1dfc9487669884a6be5fe606f8d8259de065f3.zip |
docs for setHTML
-rw-r--r-- | doc/api/http_api.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/http_api.md b/doc/api/http_api.md index 0543ef71..575b2c98 100644 --- a/doc/api/http_api.md +++ b/doc/api/http_api.md @@ -283,6 +283,16 @@ sets the text of a pad * `{code: 1, message:"padID does not exist", 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]) * API >= 1 |