summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorLuiza Pagliari <lpagliar@thoughtworks.com>2015-05-15 11:18:58 -0300
committerLuiza Pagliari <lpagliar@thoughtworks.com>2015-05-15 11:18:58 -0300
commit6bd2013c715ade1ce98ba1da92b4244e70117b8a (patch)
tree268e8c5421b59295d1321067d0c72d40d11b07a0 /doc/api
parent9e9207d8b6091375017aba122eb8c3db0fb10e8a (diff)
downloadetherpad-lite-6bd2013c715ade1ce98ba1da92b4244e70117b8a.zip
Fixing documentation of collectContentPre
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/hooks_client-side.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/api/hooks_client-side.md b/doc/api/hooks_client-side.md
index aa027337..fccdaf46 100644
--- a/doc/api/hooks_client-side.md
+++ b/doc/api/hooks_client-side.md
@@ -203,10 +203,10 @@ Things in context:
This hook is called before the content of a node is collected by the usual methods. The cc object can be used to do a bunch of things that modify the content of the pad. See, for example, the heading1 plugin for etherpad original.
-E.g. if you need to apply an attribute to newly inserted characters,
+E.g. if you need to apply an attribute to newly inserted characters,
call cc.doAttrib(state, "attributeName") which results in an attribute attributeName=true.
-If you want to specify also a value, call cc.doAttrib(state, "attributeName:value")
+If you want to specify also a value, call cc.doAttrib(state, "attributeName::value")
which results in an attribute attributeName=value.
@@ -257,7 +257,7 @@ This hook gets called every time the client receives a message of type `name`. T
`collab_client.js` has a pretty extensive list of message types, if you want to take a look.
-##aceStartLineAndCharForPoint-aceEndLineAndCharForPoint
+##aceStartLineAndCharForPoint-aceEndLineAndCharForPoint
Called from: src/static/js/ace2_inner.js
Things in context:
@@ -272,7 +272,7 @@ Things in context:
This hook is provided to allow a plugin to turn DOM node selection into [line,char] selection.
The return value should be an array of [line,char]
-##aceKeyEvent
+##aceKeyEvent
Called from: src/static/js/ace2_inner.js
Things in context:
@@ -286,7 +286,7 @@ Things in context:
This hook is provided to allow a plugin to handle key events.
The return value should be true if you have handled the event.
-##collectContentLineText
+##collectContentLineText
Called from: src/static/js/contentcollector.js
Things in context:
@@ -299,7 +299,7 @@ Things in context:
This hook allows you to validate/manipulate the text before it's sent to the server side.
The return value should be the validated/manipulated text.
-##collectContentLineBreak
+##collectContentLineBreak
Called from: src/static/js/contentcollector.js
Things in context:
@@ -311,7 +311,7 @@ Things in context:
This hook is provided to allow whether the br tag should induce a new magic domline or not.
The return value should be either true(break the line) or false.
-##disableAuthorColorsForThisLine
+##disableAuthorColorsForThisLine
Called from: src/static/js/linestylefilter.js
Things in context: