mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
content collector for images
This commit is contained in:
parent
6597c287e2
commit
dcb3e13358
1 changed files with 14 additions and 8 deletions
|
@ -78,7 +78,8 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
"div": 1,
|
||||
"p": 1,
|
||||
"pre": 1,
|
||||
"li": 1
|
||||
"li": 1,
|
||||
"img":1
|
||||
};
|
||||
|
||||
function isBlockElement(n)
|
||||
|
@ -452,7 +453,12 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
else
|
||||
{
|
||||
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
||||
if (tname == "br")
|
||||
if(tname == "img"){
|
||||
cc.incrementAttrib(state, "image");
|
||||
isEmpty = false;
|
||||
state.lineAttributes.pastedImage = node.outerHTML + "<br/>foo<br/>";
|
||||
}
|
||||
else if (tname == "br")
|
||||
{
|
||||
this.breakLine = true;
|
||||
var tvalue = dom.nodeAttr(node, 'value');
|
||||
|
|
Loading…
Reference in a new issue