includes/clientside/tinymce/plugins/xhtmlxtras/js/element_common.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 588 20484deb89cd
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
     1  /**
     1  /**
     2  * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
     2  * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
     3  *
     3  *
     4  * @author Moxiecode - based on work by Andrew Tetlaw
     4  * @author Moxiecode - based on work by Andrew Tetlaw
     5  * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
     8 tinyMCEPopup.requireLangPack();
     8 tinyMCEPopup.requireLangPack();
     9 
     9 
    10 function initCommonAttributes(elm) {
    10 function initCommonAttributes(elm) {
   155 	if (elm == null) {
   155 	if (elm == null) {
   156 		var s = SXE.inst.selection.getContent();
   156 		var s = SXE.inst.selection.getContent();
   157 		if(s.length > 0) {
   157 		if(s.length > 0) {
   158 			tagName = element_name;
   158 			tagName = element_name;
   159 
   159 
   160 			if (tinymce.isIE && element_name.indexOf('mce:') == 0)
   160 			if (tinymce.isIE && element_name.indexOf('html:') == 0)
   161 				element_name = element_name.substring(4).toLowerCase();
   161 				element_name = element_name.substring(5).toLowerCase();
   162 
   162 
   163 			h = '<' + tagName + ' id="#sxe_temp_' + element_name + '#">' + s + '</' + tagName + '>';
   163 			h = '<' + tagName + ' id="#sxe_temp_' + element_name + '#">' + s + '</' + tagName + '>';
   164 
   164 
   165 			tinyMCEPopup.execCommand('mceInsertContent', false, h);
   165 			tinyMCEPopup.execCommand('mceInsertContent', false, h);
   166 
   166