Added hook in cc.js

This commit is contained in:
Gedion 2012-07-04 19:43:44 -05:00
parent 4a781b920f
commit 0005ec92cb

View file

@ -450,8 +450,20 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
var tname = (dom.nodeTagName(node) || "").toLowerCase();
if (tname == "br")
{
this.breakLine = true;
var tvalue = dom.nodeAttr(node, 'value');
hooks.callAll('collectContentBreak', {
cc: this,
state: state,
tname: tname,
tvalue:tvalue,
styl: null,
cls: null
});
if(this.breakLine){
cc.startNewLine(state);
}
}
else if (tname == "script" || tname == "style")
{
// ignore