includes/clientside/tinymce/themes/advanced/js/image.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 459 31c23016ab62
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
    52 	},
    52 	},
    53 
    53 
    54 	update : function() {
    54 	update : function() {
    55 		var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el;
    55 		var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el;
    56 
    56 
       
    57 		if (f.src.value === '') {
       
    58 			ed.dom.remove(ed.selection.getNode());
       
    59 			ed.execCommand('mceRepaint');
       
    60 			tinyMCEPopup.close();
       
    61 			return;
       
    62 		}
       
    63 
    57 		if (!ed.settings.inline_styles) {
    64 		if (!ed.settings.inline_styles) {
    58 			args = tinymce.extend(args, {
    65 			args = tinymce.extend(args, {
    59 				vspace : nl.vspace.value,
    66 				vspace : nl.vspace.value,
    60 				hspace : nl.hspace.value,
    67 				hspace : nl.hspace.value,
    61 				border : nl.border.value,
    68 				border : nl.border.value,