includes/clientside/tinymce/plugins/xhtmlxtras/js/element_common.js
changeset 1193 e3b94bd055dc
parent 778 57ce13805b6f
equal deleted inserted replaced
1192:5882f0eebb34 1193:e3b94bd055dc
   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 }