diff --git a/editor/sanitize.js b/editor/sanitize.js index 2da9c688..0a14bb9f 100644 --- a/editor/sanitize.js +++ b/editor/sanitize.js @@ -112,17 +112,6 @@ var svgWhiteList_ = { "munderover": [], "none": [], "semantics": [] - }, - - // Interface strings, usually for title elements - uiStrings = { - "pathNodeTooltip": "Drag node to move it. Double-click node to change segment type", - "pathCtrlPtTooltip": "Drag control point to adjust curve properties", - "exportNoBlur": "Blurred elements will appear as un-blurred", - "exportNoImage": "Image elements will not appear", - "exportNoforeignObject": "foreignObject elements will not appear", - "exportNoDashArray": "Strokes will appear filled", - "exportNoText": "Text may not appear as expected" }; // Produce a Namespace-aware version of svgWhitelist diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b79566a2..31dbe4e8 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -255,6 +255,17 @@ svgedit.utilities.snapToGrid = function(value){ }; var snapToGrid = svgedit.utilities.snapToGrid; +// Interface strings, usually for title elements +var uiStrings = { + "pathNodeTooltip": "Drag node to move it. Double-click node to change segment type", + "pathCtrlPtTooltip": "Drag control point to adjust curve properties", + "exportNoBlur": "Blurred elements will appear as un-blurred", + "exportNoImage": "Image elements will not appear", + "exportNoforeignObject": "foreignObject elements will not appear", + "exportNoDashArray": "Strokes will appear filled", + "exportNoText": "Text may not appear as expected" +}; + var visElems = 'a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use'; var ref_attrs = ["clip-path", "fill", "filter", "marker-end", "marker-mid", "marker-start", "mask", "stroke"];