diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 7323a0e..5d6457e 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1303,7 +1303,11 @@ var ICEcoder = { // Show color picker showColorPicker: function(color) { top.document.getElementById('blackMask').style.visibility = "visible"; - top.document.getElementById('mediaContainer').innerHTML = '


'; + top.document.getElementById('mediaContainer').innerHTML = '


'+ + ''+ + '
'+ + ''+ + ''; farbtastic('picker','color'); if (color) { top.document.getElementById('picker').farbtastic.setColor(color); @@ -1366,7 +1370,7 @@ var ICEcoder = { cM = ICEcoder.getcMInstance(); cursor = cM.getTokenAt(cM.getCursor()); - cM.replaceRange(top.document.getElementById('color').value,{line:cM.getCursor().line,ch:cursor.start},{line:cM.getCursor().line,ch:cursor.end}); + cM.replaceRange(color,{line:cM.getCursor().line,ch:cursor.start},{line:cM.getCursor().line,ch:cursor.end}); }, // Change opacity of the file manager icons