diff options
author | Gedion <gwy321@gmail.com> | 2012-09-08 13:45:33 -0500 |
---|---|---|
committer | Gedion <gwy321@gmail.com> | 2012-09-08 13:45:33 -0500 |
commit | c37c48cd12c82bbebf06e6f8d9090196b9533638 (patch) | |
tree | 76e53146ee8f67be4a672adc24f8eb372c217304 /src/static/js/contentcollector.js | |
parent | 6d1cba225978f76619659eb28e174e3f945d834f (diff) | |
download | etherpad-lite-c37c48cd12c82bbebf06e6f8d9090196b9533638.zip |
added hooks and made some functions available to editor info object in ace
Diffstat (limited to 'src/static/js/contentcollector.js')
-rw-r--r-- | src/static/js/contentcollector.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index a1860cba..27d2940a 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -376,18 +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. - * - */ + /* + * 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 be the validated/manipulated text. + * + */ var txtFromHook = hooks.callAll('collectContentLineText', { cc: this, state: state, @@ -472,7 +472,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class * 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. + * 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. * */ |