--- a/includes/clientside/tinymce/themes/advanced/js/image.js Thu Jan 31 22:29:07 2008 -0500
+++ b/includes/clientside/tinymce/themes/advanced/js/image.js Sat Feb 02 11:54:16 2008 -0500
@@ -54,6 +54,13 @@
update : function() {
var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el;
+ if (f.src.value === '') {
+ ed.dom.remove(ed.selection.getNode());
+ ed.execCommand('mceRepaint');
+ tinyMCEPopup.close();
+ return;
+ }
+
if (!ed.settings.inline_styles) {
args = tinymce.extend(args, {
vspace : nl.vspace.value,