diff --git a/editor/svg-editor.js b/editor/svg-editor.js index c697c31a..b2a54afd 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -131,6 +131,7 @@ $(document).ready(function(){ var oldbg = elem.css('background'); var color = elem.css('background-color'); if (color == 'transparent') { + color = new $.jPicker.Color({ hex: 'ffffff' }); } else { if (color.length == 7 && color[0] == '#') { // #hheexx notation color = new $.jPicker.Color( { hex: color.substring(1,7) } );