diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 64bff8e5..412854a7 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -191,6 +191,10 @@ div.color_block { padding: 2px; } +#svg_editor #paint_picker { + display: none; +} + #svg_editor #color_picker { position: absolute; display: none; diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 83687046..58f0f221 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -3,15 +3,16 @@ - - + + + @@ -205,6 +206,8 @@ +
+
diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 010d7104..bf234c81 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -8,6 +8,7 @@ if(!window.console) { // this defines which elements and attributes that we support var svgWhiteList = { "circle": ["cx", "cy", "fill", "fill-opacity", "id", "stroke", "r", "stroke-opacity", "stroke-width", "stroke-dasharray"], + "defs": [], "ellipse": ["cx", "cy", "fill", "fill-opacity", "id", "stroke", "rx", "ry", "stroke-opacity", "stroke-width", "stroke-dasharray"], "line": ["fill", "fill-opacity", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray", "x1", "x2", "y1", "y2"], "path": ["d", "fill", "fill-opacity", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray"],