diff --git a/lib/ice-coder.js b/lib/ice-coder.js index b658fdc..f79387f 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1224,12 +1224,33 @@ var ICEcoder = { newBlock.style.width = newBlock.style.height = "20px"; newBlock.style.zIndex = "1000"; newBlock.style.background = match ? match[0] : ''; + newBlock.style.cursor = "pointer"; + newBlock.onclick = function() {top.ICEcoder.showColorPicker(match[0])}; if (newBlock.style.backgroundColor=="") {newBlock.style.display = "none"}; top.document.getElementById('header').appendChild(newBlock); cM.addWidget(cM.getCursor(), top.document.getElementById('cssColor'), true); } }, + // Show color picker + showColorPicker: function(color) { + top.document.getElementById('blackMask').style.visibility = "visible"; + top.document.getElementById('mediaContainer').innerHTML = '