summaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorGedion <gwy321@gmail.com>2012-09-08 12:11:04 -0500
committerGedion <gwy321@gmail.com>2012-09-08 12:11:04 -0500
commit6d1cba225978f76619659eb28e174e3f945d834f (patch)
tree9c0547202ae0208442fe8f55dc81223c32af242a /src/static
parenta2c8d2124071d668bd3799c166004263d46fcc6a (diff)
downloadetherpad-lite-6d1cba225978f76619659eb28e174e3f945d834f.zip
added hooks to contentcollector.js
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/contentcollector.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js
index bb814212..a1860cba 100644
--- a/src/static/js/contentcollector.js
+++ b/src/static/js/contentcollector.js
@@ -376,6 +376,18 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
{
var txt = dom.nodeValue(node);
var tname = dom.nodeAttr(node.parentNode,"name");
+ /*
+ * Called from: src/static/js/contentcollector.js
+ *
+ * Context -
+ * cc - the contentcollector object
+ * state - the current state of the change being made
+ * tname - the tag name of this node currently being processed
+ * text - the text for that line
+ * This hook allows you to validate/manipulate the text before it sent to the server side.
+ * The return value should the validate/manipulated text.
+ *
+ */
var txtFromHook = hooks.callAll('collectContentLineText', {
cc: this,
state: state,
@@ -453,14 +465,15 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
var tname = (dom.nodeTagName(node) || "").toLowerCase();
if (tname == "br")
/*
- *Called from: src/static/js/contentcollector.js
+ * Called from: src/static/js/contentcollector.js
*
+ * Context -
* cc - the contentcollector object
* state - the current state of the change being made
* tname - the tag name of this node currently being processed
*
* 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 values.
+ * The return value should be either true(break the line) or false.
*
*/
{