clean support for image hook

This commit is contained in:
John McLear 2015-01-26 01:44:40 +00:00
parent aca745ddf6
commit 8156930208
1 changed files with 14 additions and 0 deletions

View File

@ -458,6 +458,20 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
else
{
var tname = (dom.nodeTagName(node) || "").toLowerCase();
// Images shouldn't be defined as empty.
if (tname == "img"){
isEmpty = false;
hooks.callAll('collectContentImage', {
cc: cc,
state: state,
tname: tname,
styl: styl,
cls: cls,
node: node
});
}
if (tname == "br")
{
this.breakLine = true;