mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
clean support for image hook
This commit is contained in:
parent
aca745ddf6
commit
8156930208
1 changed files with 14 additions and 0 deletions
|
@ -458,6 +458,20 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
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")
|
if (tname == "br")
|
||||||
{
|
{
|
||||||
this.breakLine = true;
|
this.breakLine = true;
|
||||||
|
|
Loading…
Reference in a new issue