mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -04:00
Merge pull request #2497 from ether/image-support-hook
clean support for image hook
This commit is contained in:
commit
4de42da2e3
2 changed files with 35 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue