diff --git a/src/editor/svgedit.js b/src/editor/svgedit.js index 0311891a..0d4cc248 100644 --- a/src/editor/svgedit.js +++ b/src/editor/svgedit.js @@ -2689,26 +2689,6 @@ editor.init = () => { svgCanvas.bind('extension_added', extAdded); svgCanvas.textActions.setInputElem($('#text')[0]); - // Set up editor background functionality - /* const colorBlocks = ['#FFF', '#888', '#000', 'chessboard']; - let str = ''; - $.each(colorBlocks, function (i, e) { - str += (e === 'chessboard') - // eslint-disable-next-line max-len - ? `
` - : `
`; - }); - $('#bg_blocks').append(str); - const blocks = $('#bg_blocks div'); - const curBg = 'cur_background'; - blocks.each(function () { - const blk = $(this); - blk.click(function () { - blocks.removeClass(curBg); - $(this).addClass(curBg); - }); - }); */ - setBackground(editor.pref('bkgd_color'), editor.pref('bkgd_url')); // update resolution option with actual resolution @@ -3793,10 +3773,10 @@ editor.init = () => { updateToolButtonState(); }; - $('#svg_prefs_container').draggable({ + /* $('#svg_prefs_container').draggable({ cancel: 'button,fieldset', containment: 'window' - }).css('position', 'absolute'); + }).css('position', 'absolute'); */ let docprops = false; let preferences = false;