From 940fc384aacb1bd6c21a3d6ce3843c547446788d Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 27 Apr 2022 20:29:51 +0800 Subject: [PATCH] =?UTF-8?q?ie=20=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor-app/configuration/toolbar-default-actions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renren-admin/src/main/resources/public/editor-app/configuration/toolbar-default-actions.js b/renren-admin/src/main/resources/public/editor-app/configuration/toolbar-default-actions.js index a09bac7f..86d97e48 100644 --- a/renren-admin/src/main/resources/public/editor-app/configuration/toolbar-default-actions.js +++ b/renren-admin/src/main/resources/public/editor-app/configuration/toolbar-default-actions.js @@ -372,6 +372,12 @@ var SaveModelCtrl = [ '$rootScope', '$scope', '$http', '$route', '$location', // Parse dom to string var svgDOM = DataManager.serialize(svgClone); + svgDOM = svgDOM.replace(/marker-start="url\("#/g,"marker-start=\"url(#").replace(/start"\)"/g,"start\)\""); + + svgDOM = svgDOM.replace(/marker-mid="url\("#/g,"marker-mid=\"url(#").replace(/mid"\)"/g,"mid\)\""); + + svgDOM = svgDOM.replace(/marker-end="url\("#/g,"marker-end=\"url(#").replace(/end"\)"/g,"end\)\""); + var params = { json_xml: json, svg_xml: svgDOM,