equal
deleted
inserted
replaced
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, |