old mode 100755
new mode 100644
| | |
| | | /**
|
| | | * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $
|
| | | * $Id: editor_plugin_src.js 275 2007-05-01 15:35:08Z spocke $
|
| | | *
|
| | | * @author Moxiecode
|
| | | * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
|
| | | * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
|
| | | */
|
| | |
|
| | | /* Import plugin specific language pack */
|
| | |
| | | longname : 'Media',
|
| | | author : 'Moxiecode Systems AB',
|
| | | authorurl : 'http://tinymce.moxiecode.com',
|
| | | infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_media.html',
|
| | | infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',
|
| | | version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
| | | };
|
| | | },
|
| | |
|
| | | initInstance : function(inst) {
|
| | | // Warn if user has flash plugin and media plugin at the same time
|
| | | if (inst.hasPlugin('flash') && !tinyMCE.flashWarn) {
|
| | | alert('Flash plugin is deprecated and should not be used together with the media plugin.');
|
| | | tinyMCE.flashWarn = true;
|
| | | }
|
| | |
|
| | | if (!tinyMCE.settings['media_skip_plugin_css'])
|
| | | tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/media/css/content.css");
|
| | | },
|
| | |
| | | break;
|
| | |
|
| | | case 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6':
|
| | | case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':
|
| | | case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':
|
| | | nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemWindowsMedia', d, nl[i]), nl[i]);
|
| | | break;
|
| | |
|
| | |
| | | break;
|
| | |
|
| | | case 'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa':
|
| | | case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':
|
| | | case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':
|
| | | nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemRealMedia', d, nl[i]), nl[i]);
|
| | | break;
|
| | | }
|
| | |
| | | // Parse attributes
|
| | | at = attribs['title'];
|
| | | if (at) {
|
| | | at = at.replace(/'/g, "'");
|
| | | at = at.replace(/&(#39|apos);/g, "'");
|
| | | at = at.replace(/&#quot;/g, '"');
|
| | |
|
| | | try {
|
| | |
| | | h += '>';
|
| | |
|
| | | for (n in p) {
|
| | | if (p[n] && typeof(p[n]) != "function") {
|
| | | if (typeof(p[n]) != "undefined" && typeof(p[n]) != "function") {
|
| | | h += '<param name="' + n + '" value="' + p[n] + '" />';
|
| | |
|
| | | // Add extra url parameter if it's an absolute URL on WMP
|
| | |
| | | },
|
| | |
|
| | | _parseAttributes : function(attribute_string) {
|
| | | var attributeName = "";
|
| | | var attributeName = "", endChr = '"';
|
| | | var attributeValue = "";
|
| | | var withInName;
|
| | | var withInValue;
|
| | |
| | | for (var i=0; i<attribute_string.length; i++) {
|
| | | var chr = attribute_string.charAt(i);
|
| | |
|
| | | if ((chr == '"' || chr == "'") && !withInValue)
|
| | | if ((chr == '"' || chr == "'") && !withInValue) {
|
| | | withInValue = true;
|
| | | else if ((chr == '"' || chr == "'") && withInValue) {
|
| | | endChr = chr;
|
| | | } else if (chr == endChr && withInValue) {
|
| | | withInValue = false;
|
| | |
|
| | | var pos = attributeName.lastIndexOf(' ');
|