summaryrefslogtreecommitdiff
path: root/doc/api/http_api.md
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2013-02-12 23:44:09 +0000
committerJohn McLear <john@mclear.co.uk>2013-02-12 23:44:09 +0000
commit9e1dfc9487669884a6be5fe606f8d8259de065f3 (patch)
treefac12be49cd82c73a59f8fcb93456e5b11c372a4 /doc/api/http_api.md
parente152c477c7c9fbc65e6d7da6131011852f60bf34 (diff)
downloadetherpad-lite-9e1dfc9487669884a6be5fe606f8d8259de065f3.zip
docs for setHTML
Diffstat (limited to 'doc/api/http_api.md')
-rw-r--r--doc/api/http_api.md10
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