--- a/includes/clientside/tinymce/themes/advanced/js/color_picker.js Thu Jun 26 18:05:42 2008 -0400
+++ b/includes/clientside/tinymce/themes/advanced/js/color_picker.js Thu Jun 26 20:55:13 2008 -0400
@@ -230,7 +230,7 @@
color = finalR + finalG + finalB;
- document.getElementById('gs' + i).style.backgroundColor = '#'+color;
+ setCol('gs' + i, '#'+color);
}
}
@@ -238,8 +238,16 @@
if (color.indexOf('#') == -1)
color = convertRGBToHex(color);
- document.getElementById('preview').style.backgroundColor = color;
+ setCol('preview', color);
document.getElementById('color').value = color;
}
+function setCol(e, c) {
+ try {
+ document.getElementById(e).style.backgroundColor = c;
+ } catch (ex) {
+ // Ignore IE warning
+ }
+}
+
tinyMCEPopup.onInit.add(init);