equal
deleted
inserted
replaced
222 |
222 |
223 function insertInlineElement(en) { |
223 function insertInlineElement(en) { |
224 var ed = tinyMCEPopup.editor, dom = ed.dom; |
224 var ed = tinyMCEPopup.editor, dom = ed.dom; |
225 |
225 |
226 ed.getDoc().execCommand('FontName', false, 'mceinline'); |
226 ed.getDoc().execCommand('FontName', false, 'mceinline'); |
227 tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) { |
227 tinymce.each(dom.select('span,font'), function(n) { |
228 if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') |
228 if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') |
229 dom.replace(dom.create(en, {_mce_new : 1}), n, 1); |
229 dom.replace(dom.create(en, {_mce_new : 1}), n, 1); |
230 }); |
230 }); |
231 } |
231 } |