Merge pull request #2497 from ether/image-support-hook

clean support for image hook
This commit is contained in:
John McLear 2015-01-26 16:07:56 +00:00
commit 4de42da2e3
2 changed files with 35 additions and 1 deletions

View file

@ -458,7 +458,18 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
else
{
var tname = (dom.nodeTagName(node) || "").toLowerCase();
if (tname == "br")
if (tname == "img"){
var context = hooks.callAll('collectContentImage', {
cc: cc,
state: state,
tname: tname,
styl: styl,
cls: cls,
node: node
});
}
else if (tname == "br")
{
this.breakLine = true;
var tvalue = dom.nodeAttr(node, 'value');