From 8b8d549abd5b6ce00c4ebd8c265c1d5b36af1b17 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 18 Aug 2023 23:06:30 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=9C=A8Firefox?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=AD=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/node/nodeCreateContents.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simple-mind-map/src/core/render/node/nodeCreateContents.js b/simple-mind-map/src/core/render/node/nodeCreateContents.js index ba19d884..c6829df3 100644 --- a/simple-mind-map/src/core/render/node/nodeCreateContents.js +++ b/simple-mind-map/src/core/render/node/nodeCreateContents.js @@ -140,11 +140,10 @@ function createRichTextNode() { height = Math.ceil(height) g.attr('data-width', width) g.attr('data-height', height) - html = div.innerHTML let foreignObject = new ForeignObject() foreignObject.width(width) foreignObject.height(height) - foreignObject.add(SVG(html)) + foreignObject.add(div.children[0]) g.add(foreignObject) return { node: g,