Make foreignObject editing work in Safari
"Apply Changes" no longer generates an error in Safari.
This commit is contained in:
parent
620bb2a1f7
commit
c608cedab9
1 changed files with 1 additions and 1 deletions
|
@ -5683,7 +5683,7 @@ function BatchCommand(text) {
|
||||||
// run it through our sanitizer to remove anything we do not support
|
// run it through our sanitizer to remove anything we do not support
|
||||||
sanitizeSvg(newDoc.documentElement);
|
sanitizeSvg(newDoc.documentElement);
|
||||||
|
|
||||||
elt.parentNode.replaceChild(newDoc.documentElement.firstChild, elt);
|
elt.parentNode.replaceChild(svgdoc.importNode(newDoc.documentElement.firstChild, true), elt);
|
||||||
call("changed", [elt]);
|
call("changed", [elt]);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue