includes/clientside/tinymce/plugins/media/editor_plugin_src.js
changeset 543 dffcbfbc4e59
parent 459 31c23016ab62
child 588 20484deb89cd
equal deleted inserted replaced
542:5841df0ab575 543:dffcbfbc4e59
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 615 2008-02-20 23:18:01Z spocke $
     2  * $Id: editor_plugin_src.js 763 2008-04-03 13:25:45Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
    45 					mceItemWindowsMedia : 'windowsmedia',
    45 					mceItemWindowsMedia : 'windowsmedia',
    46 					mceItemQuickTime : 'quicktime',
    46 					mceItemQuickTime : 'quicktime',
    47 					mceItemRealMedia : 'realmedia'
    47 					mceItemRealMedia : 'realmedia'
    48 				};
    48 				};
    49 
    49 
    50 				ed.dom.loadCSS(url + "/css/content.css");
    50 				if (ed.settings.content_css !== false)
       
    51 					ed.dom.loadCSS(url + "/css/content.css");
    51 
    52 
    52 				if (ed.theme.onResolveName) {
    53 				if (ed.theme.onResolveName) {
    53 					ed.theme.onResolveName.add(function(th, o) {
    54 					ed.theme.onResolveName.add(function(th, o) {
    54 						if (o.name == 'img') {
    55 						if (o.name == 'img') {
    55 							each(lo, function(v, k) {
    56 							each(lo, function(v, k) {
   221 
   222 
   222 			if (p.src)
   223 			if (p.src)
   223 				p.src = ed.convertURL(p.src, 'src', n);
   224 				p.src = ed.convertURL(p.src, 'src', n);
   224 
   225 
   225 			each (p, function(v, k) {
   226 			each (p, function(v, k) {
   226 				if (!/^(width|height|codebase|classid)$/.test(k))
   227 				if (!/^(width|height|codebase|classid)$/.test(k)) {
       
   228 					// Use url instead of src in IE for Windows media
       
   229 					if (o.type == 'application/x-mplayer2' && k == 'src')
       
   230 						k = 'url';
       
   231 
   227 					dom.add(ob, 'span', {mce_name : 'param', name : k, '_value' : v});
   232 					dom.add(ob, 'span', {mce_name : 'param', name : k, '_value' : v});
       
   233 				}
   228 			});
   234 			});
   229 
   235 
   230 			dom.add(ob, 'span', tinymce.extend({mce_name : 'embed', type : o.type}, p));
   236 			dom.add(ob, 'span', tinymce.extend({mce_name : 'embed', type : o.type}, p));
   231 
   237 
   232 			return ob;
   238 			return ob;