From 87e2fddb32da8580f73c5ec0628e9eacfb4e0043 Mon Sep 17 00:00:00 2001 From: svncommit <devs@roundcube.net> Date: Mon, 26 Feb 2007 02:19:44 -0500 Subject: [PATCH] upgrade to TinyMCE v2.1.0 --- program/js/tiny_mce/plugins/media/editor_plugin_src.js | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/program/js/tiny_mce/plugins/media/editor_plugin_src.js b/program/js/tiny_mce/plugins/media/editor_plugin_src.js index b8c2eb6..3257837 100755 --- a/program/js/tiny_mce/plugins/media/editor_plugin_src.js +++ b/program/js/tiny_mce/plugins/media/editor_plugin_src.js @@ -1,8 +1,8 @@ /** - * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $ + * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z 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 */ @@ -14,12 +14,18 @@ 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"); }, @@ -150,7 +156,7 @@ // Parse attributes at = attribs['title']; if (at) { - at = at.replace(/'/g, "'"); + at = at.replace(/&(#39|apos);/g, "'"); at = at.replace(/&#quot;/g, '"'); try { @@ -380,7 +386,7 @@ }, _parseAttributes : function(attribute_string) { - var attributeName = ""; + var attributeName = "", endChr = '"'; var attributeValue = ""; var withInName; var withInValue; @@ -395,9 +401,10 @@ 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(' '); -- Gitblit v1.9.1