From 6768f8567f5c4e4393cf42a73509f185c6df7e6f Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 25 Apr 2022 17:25:15 +0800 Subject: [PATCH] ... --- .../editor-app/configuration/toolbar-default-actions.js | 5 +++++ 1 file changed, 5 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..21e5b95d 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,11 @@ var SaveModelCtrl = [ '$rootScope', '$scope', '$http', '$route', '$location', // Parse dom to string var svgDOM = DataManager.serialize(svgClone); + // Glen: modify for save error. + 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,