14 tinyMCEPopup.resizeToInnerSize(); |
14 tinyMCEPopup.resizeToInnerSize(); |
15 this.fillClassList('class_list'); |
15 this.fillClassList('class_list'); |
16 this.fillFileList('src_list', 'tinyMCEImageList'); |
16 this.fillFileList('src_list', 'tinyMCEImageList'); |
17 this.fillFileList('over_list', 'tinyMCEImageList'); |
17 this.fillFileList('over_list', 'tinyMCEImageList'); |
18 this.fillFileList('out_list', 'tinyMCEImageList'); |
18 this.fillFileList('out_list', 'tinyMCEImageList'); |
|
19 TinyMCE_EditableSelects.init(); |
19 |
20 |
20 if (n.nodeName == 'IMG') { |
21 if (n.nodeName == 'IMG') { |
21 nl.src.value = dom.getAttrib(n, 'src'); |
22 nl.src.value = dom.getAttrib(n, 'src'); |
22 nl.width.value = dom.getAttrib(n, 'width'); |
23 nl.width.value = dom.getAttrib(n, 'width'); |
23 nl.height.value = dom.getAttrib(n, 'height'); |
24 nl.height.value = dom.getAttrib(n, 'height'); |
25 nl.title.value = dom.getAttrib(n, 'title'); |
26 nl.title.value = dom.getAttrib(n, 'title'); |
26 nl.vspace.value = this.getAttrib(n, 'vspace'); |
27 nl.vspace.value = this.getAttrib(n, 'vspace'); |
27 nl.hspace.value = this.getAttrib(n, 'hspace'); |
28 nl.hspace.value = this.getAttrib(n, 'hspace'); |
28 nl.border.value = this.getAttrib(n, 'border'); |
29 nl.border.value = this.getAttrib(n, 'border'); |
29 selectByValue(f, 'align', this.getAttrib(n, 'align')); |
30 selectByValue(f, 'align', this.getAttrib(n, 'align')); |
30 selectByValue(f, 'class_list', dom.getAttrib(n, 'class')); |
31 selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); |
31 nl.style.value = dom.getAttrib(n, 'style'); |
32 nl.style.value = dom.getAttrib(n, 'style'); |
32 nl.id.value = dom.getAttrib(n, 'id'); |
33 nl.id.value = dom.getAttrib(n, 'id'); |
33 nl.dir.value = dom.getAttrib(n, 'dir'); |
34 nl.dir.value = dom.getAttrib(n, 'dir'); |
34 nl.lang.value = dom.getAttrib(n, 'lang'); |
35 nl.lang.value = dom.getAttrib(n, 'lang'); |
35 nl.usemap.value = dom.getAttrib(n, 'usemap'); |
36 nl.usemap.value = dom.getAttrib(n, 'usemap'); |
168 el = ed.selection.getNode(); |
169 el = ed.selection.getNode(); |
169 |
170 |
170 if (el && el.nodeName == 'IMG') { |
171 if (el && el.nodeName == 'IMG') { |
171 ed.dom.setAttribs(el, args); |
172 ed.dom.setAttribs(el, args); |
172 } else { |
173 } else { |
173 ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" src="javascript:;" />', {skip_undo : 1}); |
174 ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" />', {skip_undo : 1}); |
174 ed.dom.setAttribs('__mce_tmp', args); |
175 ed.dom.setAttribs('__mce_tmp', args); |
175 ed.dom.setAttrib('__mce_tmp', 'id', ''); |
176 ed.dom.setAttrib('__mce_tmp', 'id', ''); |
176 ed.undoManager.add(); |
177 ed.undoManager.add(); |
177 } |
178 } |
178 |
179 |