mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 11:22:41 +01:00
working import and copy/paste
This commit is contained in:
parent
3c04a4c1b1
commit
8705eef906
1 changed files with 5 additions and 2 deletions
|
@ -452,11 +452,14 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
||||||
// delete state.lineAttributes.pastedImage;
|
|
||||||
// The issue with above is that we comment it out import works great, if we don't import doesn't work!
|
// Below seems a bit abrupt but it's required, I dunno if I think it's a great idea though..
|
||||||
|
delete state.lineAttributes.pastedImage;
|
||||||
|
|
||||||
if (tname == "img")
|
if (tname == "img")
|
||||||
{
|
{
|
||||||
state.lineAttributes.pastedImage = node.outerHTML;
|
state.lineAttributes.pastedImage = node.outerHTML;
|
||||||
|
cc.startNewLine(state);
|
||||||
}
|
}
|
||||||
else if (tname == "br")
|
else if (tname == "br")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue