added hooks and made some functions available to editor info object in ace

This commit is contained in:
Gedion 2012-09-08 13:45:33 -05:00
parent 6d1cba2259
commit c37c48cd12
2 changed files with 104 additions and 21 deletions

View file

@ -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.
*
*/