[pLog-svn] r7102 - in plog/branches/lifetype-1.2/js/tinymce/plugins/embed: . css img js langs

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Dec 22 12:45:38 EST 2010


Author: mark
Date: 2010-12-22 12:45:37 -0500 (Wed, 22 Dec 2010)
New Revision: 7102

Added:
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/css/
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/css/content.css
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/img/spacer.gif
Modified:
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/dialog.htm
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin.js
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin_src.js
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/js/dialog.js
   plog/branches/lifetype-1.2/js/tinymce/plugins/embed/langs/en_dlg.js
Log:
I just rewrite embed plugin. Now, this plugin can work very smoothly with insert resource/audio/video plugins. It also can handle embed code (start with <object ...> and end with </object>) from other web sites. (PS. this plugin does not work with media plugin from Tinymce, I personally like this one, it is simpler and keep the original embed code from other sites.)

Added: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/css/content.css
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/embed/css/content.css	                        (rev 0)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/css/content.css	2010-12-22 17:45:37 UTC (rev 7102)
@@ -0,0 +1,7 @@
+img.ltEmbed {
+	background-image: url('../img/embed.gif');
+	border: 1px dotted #cc0000;
+	background-position: center;
+	background-repeat: no-repeat;
+	background-color: #ffffcc;
+}

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/dialog.htm
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/embed/dialog.htm	2010-12-22 11:48:32 UTC (rev 7101)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/dialog.htm	2010-12-22 17:45:37 UTC (rev 7102)
@@ -1,29 +1,31 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-	<title>{#embed_dlg.title}</title>
-	<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
-	<script type="text/javascript" src="js/dialog.js"></script>
+    <title>{#embed_dlg.title}</title>
+    <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+    <script type="text/javascript" src="js/dialog.js"></script>
 </head>
 <body>
-
-<form onsubmit="EmbedDialog.insert();return false;" action="#">
-	<fieldset>
-		<legend>{#embed_dlg.tabone}</legend>
-		<p>Paste embed code here <br />(youTube, Picasa, Vimeo, etc):</p>
-		<p><textarea rows="8" cols="50" id="embedcode" name="embedcode" type="text" class="text"></textarea></p>
-	</fieldset>
-
-	<div class="mceActionPanel">
-		<div style="float: left">
-			<input type="button" id="insert" name="insert" value="{#insert}" onclick="EmbedDialog.insert();" />
-		</div>
-
-		<div style="float: right">
-			<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
-		</div>
-	</div>
-</form>
-
+    <form onsubmit="EmbedDialog.insert();return false;" action="#">
+        <div class="tabs">
+            <ul>
+                <li id="general_tab" class="current"><span>{#embed_dlg.title}</span></li>
+            </ul>
+        </div>
+        <div class="panel_wrapper">
+            <div id="general_panel" class="panel_current">
+                 <legend>{#embed_dlg.desc}</legend>
+                 <textarea id="embedcode" name="embedcode" type="text" style="height:220px;width:100%"></textarea>
+            </div>
+        </div>
+        <div class="mceActionPanel">
+            <div style="float: left">
+                <input type="button" id="insert" name="insert" value="{#insert}" onclick="EmbedDialog.insert();" />
+            </div>
+            <div style="float: right">
+                <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+            </div>
+        </div>
+    </form>
 </body>
 </html>

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin.js	2010-12-22 11:48:32 UTC (rev 7101)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin.js	2010-12-22 17:45:37 UTC (rev 7102)
@@ -1,2 +1,18 @@
 
-(function(){tinymce.PluginManager.requireLangPack('embed');tinymce.create('tinymce.plugins.EmbedPlugin',{init:function(ed,url){ed.addCommand('mceEmbed',function(){ed.windowManager.open({file:url+'/dialog.htm',width:400+parseInt(ed.getLang('embed.delta_width',0)),height:275+parseInt(ed.getLang('embed.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('embed',{title:'embed.desc',cmd:'mceEmbed',image:url+'/img/embed.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('embed',n.nodeName=='IMG');});},createControl:function(n,cm){return null;},getInfo:function(){return{longname:'Embed plugin',author:'Chili Pepper Design',authorurl:'http://www.chilipepperdesign.com',infourl:'http://www.chilipepperdesign.com',version:'1.0'};}});tinymce.PluginManager.add('embed',tinymce.plugins.EmbedPlugin);})();
\ No newline at end of file
+(function(){var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
+output=output+
+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+
+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);}
+return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}
+if(enc4!=64){output=output+String.fromCharCode(chr3);}}
+output=Base64._utf8_decode(output);return output;},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
+else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
+else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
+return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
+else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
+else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
+return string;}};tinymce.PluginManager.requireLangPack('embed');tinymce.create('tinymce.plugins.EmbedPlugin',{init:function(ed,url){var t=this;t.ed=ed;t.url=url;ed.onBeforeSetContent.add(function(ed,o){o.content=t._insertToEditor(t,o.content,1);});ed.onPostProcess.add(function(ed,o){if(o.set){o.content=t._insertToEditor(t,o.content);}
+if(o.get){o.content=t._getFromEditor(t,o.content);}});ed.onInit.add(function(){if(ed.settings.content_css!==false)
+ed.dom.loadCSS(url+"/css/content.css");ed.selection.onBeforeSetContent.add(function(ed,o){o.content=t._insertToEditor(t,o.content,2);});});ed.addCommand('mceEmbed',function(){ed.windowManager.open({file:url+'/dialog.htm',width:500+parseInt(ed.getLang('embed.delta_width',0)),height:320+parseInt(ed.getLang('embed.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('embed',{title:'embed.desc',cmd:'mceEmbed',image:url+'/img/embed.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('embed',n.nodeName=='IMG');});},getInfo:function(){return{longname:'Embed',author:'LifeType Team',authorurl:'http://www.lifetype.net',infourl:'http://www.lifetype.net',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_insertToEditor:function(t,content,mode){cdom=t.ed.dom.create('div');t.ed.dom.setHTML(cdom,content);if(mode==1)
+elems=t.ed.dom.select('object:not([class=ltPlayer]):not([class^=ltVideo])',cdom);else
+elems=t.ed.dom.select('object',cdom);tinymce.each(elems,function(e){e.className='ltEmbed';data=Base64.encode(t.ed.dom.getOuterHTML(e));height=e.height;width=e.width;imgHTML=t._getEmbedImgHTML(data,height,width);t.ed.dom.setOuterHTML(e,imgHTML);});content=cdom.innerHTML;t.ed.dom.remove(cdom);return content;},_getFromEditor:function(t,content){cdom=t.ed.dom.create('div');t.ed.dom.setHTML(cdom,content);elems=t.ed.dom.select('img[class=ltEmbed]',cdom);tinymce.each(elems,function(e){src=e.alt;embedHTML=Base64.decode(src);t.ed.dom.setOuterHTML(e,embedHTML);});content=cdom.innerHTML;t.ed.dom.remove(cdom);return content;},_getEmbedImgHTML:function(data,height,width){html='<img width="'+width+'" height="'+height+'"'+' src="'+this.url+'/img/spacer.gif'+'" title="'+data+'"'+' alt="'+data+'" class="ltEmbed" />';return html;}});tinymce.PluginManager.add('embed',tinymce.plugins.EmbedPlugin);})();
\ No newline at end of file

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin_src.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin_src.js	2010-12-22 11:48:32 UTC (rev 7101)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin_src.js	2010-12-22 17:45:37 UTC (rev 7102)
@@ -1,88 +1,269 @@
 /**
  * editor_plugin_src.js
- * 
- *  This plugin allows users to insert Embed codes (or any other HTML they want) at their curor location.
  *
- * Author: http://www.chilipepperdesign.com
- * Based on the Example Plugin
- * 
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
+ * Copyright 2010, Lifetype Team, http://www.lifetype.net
+ * Released under GPLv2 License.
  *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
+ * Original author : Chili Pepper Design, http://www.chilipepperdesign.com
  */
 
 (function() {
-	// Load plugin specific language pack
-	tinymce.PluginManager.requireLangPack('embed');
 
-	tinymce.create('tinymce.plugins.EmbedPlugin', {
-		/**
-		 * Initializes the plugin, this will be executed after the plugin has been created.
-		 * This call is done before the editor instance has finished it's initialization so use the onInit event
-		 * of the editor instance to intercept that event.
-		 *
-		 * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
-		 * @param {string} url Absolute URL to where the plugin is located.
-		 */
-		init : function(ed, url) {
-			// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
-			ed.addCommand('mceEmbed', function() {
-				ed.windowManager.open({
-					file : url + '/dialog.htm',
-					width : 400 + parseInt(ed.getLang('embed.delta_width', 0)),
-					height : 275 + parseInt(ed.getLang('embed.delta_height', 0)),
-					inline : 1
-				}, {
-					plugin_url : url // Plugin absolute URL
-				});
-			});
+    /**
+    *  Base64 encode / decode
+    *  http://www.webtoolkit.info/
+    **/
+    var Base64 = {
 
-			// Register embed button
-			ed.addButton('embed', {
-				title : 'embed.desc',
-				cmd : 'mceEmbed',
-				image : url + '/img/embed.gif'
-			});
+        // private property
+        _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
 
-			// Add a node change handler, selects the button in the UI when a image is selected
-			ed.onNodeChange.add(function(ed, cm, n) {
-				cm.setActive('embed', n.nodeName == 'IMG');
-			});
-		},
+        // public method for encoding
+        encode : function (input) {
+            var output = "";
+            var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
+            var i = 0;
 
-		/**
-		 * Creates control instances based in the incomming name. This method is normally not
-		 * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
-		 * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
-		 * method can be used to create those.
-		 *
-		 * @param {String} n Name of the control to create.
-		 * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
-		 * @return {tinymce.ui.Control} New control instance or null if no control was created.
-		 */
-		createControl : function(n, cm) {
-			return null;
-		},
+            input = Base64._utf8_encode(input);
 
-		/**
-		 * Returns information about the plugin as a name/value array.
-		 * The current keys are longname, author, authorurl, infourl and version.
-		 *
-		 * @return {Object} Name/value array containing information about the plugin.
-		 */
-		getInfo : function() {
-			return {
-				longname : 'Embed plugin',
-				author : 'Chili Pepper Design',
-				authorurl : 'http://www.chilipepperdesign.com',
-				infourl : 'http://www.chilipepperdesign.com',
-				version : '1.0'
-			};
-		}
-	});
+            while (i < input.length) {
 
-	// Register plugin
-	tinymce.PluginManager.add('embed', tinymce.plugins.EmbedPlugin);
+                chr1 = input.charCodeAt(i++);
+                chr2 = input.charCodeAt(i++);
+                chr3 = input.charCodeAt(i++);
+
+                enc1 = chr1 >> 2;
+                enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
+                enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
+                enc4 = chr3 & 63;
+
+                if (isNaN(chr2)) {
+                    enc3 = enc4 = 64;
+                } else if (isNaN(chr3)) {
+                    enc4 = 64;
+                }
+
+                output = output +
+                this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
+                this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
+
+            }
+
+            return output;
+        },
+
+        // public method for decoding
+        decode : function (input) {
+            var output = "";
+            var chr1, chr2, chr3;
+            var enc1, enc2, enc3, enc4;
+            var i = 0;
+
+            input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
+
+            while (i < input.length) {
+
+                enc1 = this._keyStr.indexOf(input.charAt(i++));
+                enc2 = this._keyStr.indexOf(input.charAt(i++));
+                enc3 = this._keyStr.indexOf(input.charAt(i++));
+                enc4 = this._keyStr.indexOf(input.charAt(i++));
+
+                chr1 = (enc1 << 2) | (enc2 >> 4);
+                chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
+                chr3 = ((enc3 & 3) << 6) | enc4;
+
+                output = output + String.fromCharCode(chr1);
+
+                if (enc3 != 64) {
+                    output = output + String.fromCharCode(chr2);
+                }
+                if (enc4 != 64) {
+                    output = output + String.fromCharCode(chr3);
+                }
+
+            }
+
+            output = Base64._utf8_decode(output);
+
+            return output;
+
+        },
+
+        // private method for UTF-8 encoding
+        _utf8_encode : function (string) {
+            string = string.replace(/\r\n/g,"\n");
+            var utftext = "";
+
+            for (var n = 0; n < string.length; n++) {
+
+                var c = string.charCodeAt(n);
+
+                if (c < 128) {
+                    utftext += String.fromCharCode(c);
+                }
+                else if((c > 127) && (c < 2048)) {
+                    utftext += String.fromCharCode((c >> 6) | 192);
+                    utftext += String.fromCharCode((c & 63) | 128);
+                }
+                else {
+                    utftext += String.fromCharCode((c >> 12) | 224);
+                    utftext += String.fromCharCode(((c >> 6) & 63) | 128);
+                    utftext += String.fromCharCode((c & 63) | 128);
+                }
+
+            }
+
+            return utftext;
+        },
+
+        // private method for UTF-8 decoding
+        _utf8_decode : function (utftext) {
+            var string = "";
+            var i = 0;
+            var c = c1 = c2 = 0;
+
+            while ( i < utftext.length ) {
+
+                c = utftext.charCodeAt(i);
+
+                if (c < 128) {
+                    string += String.fromCharCode(c);
+                    i++;
+                }
+                else if((c > 191) && (c < 224)) {
+                    c2 = utftext.charCodeAt(i+1);
+                    string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
+                    i += 2;
+                }
+                else {
+                    c2 = utftext.charCodeAt(i+1);
+                    c3 = utftext.charCodeAt(i+2);
+                    string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
+                    i += 3;
+                }
+
+            }
+
+            return string;
+        }
+
+    };
+
+    tinymce.PluginManager.requireLangPack('embed');
+    tinymce.create('tinymce.plugins.EmbedPlugin', {
+        init : function(ed, url) {
+            var t = this;
+                t.ed = ed;
+                t.url = url;
+
+            ed.onBeforeSetContent.add(function(ed, o) {
+                o.content = t._insertToEditor(t, o.content, 1);
+            });
+
+            ed.onPostProcess.add(function(ed, o) {
+                if (o.set){
+                    o.content = t._insertToEditor(t, o.content);
+                }
+                if (o.get){
+                    o.content = t._getFromEditor(t, o.content);
+                }
+            });
+
+            ed.onInit.add(function() {
+                if (ed.settings.content_css !== false)
+                    ed.dom.loadCSS(url + "/css/content.css");
+
+                ed.selection.onBeforeSetContent.add(function(ed, o) {
+                    o.content = t._insertToEditor(t, o.content, 2);
+                });
+            });
+
+            // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
+            ed.addCommand('mceEmbed', function() {
+                ed.windowManager.open({
+                    file : url + '/dialog.htm',
+                    width : 500 + parseInt(ed.getLang('embed.delta_width', 0)),
+                    height : 320 + parseInt(ed.getLang('embed.delta_height', 0)),
+                    inline : 1
+                }, {
+                    plugin_url : url // Plugin absolute URL
+                });
+            });
+
+            // Register embed button
+            ed.addButton('embed', {
+                title : 'embed.desc',
+                cmd : 'mceEmbed',
+                image : url + '/img/embed.gif'
+            });
+
+            // Add a node change handler, selects the button in the UI when a image is selected
+            ed.onNodeChange.add(function(ed, cm, n) {
+                cm.setActive('embed', n.nodeName == 'IMG');
+            });
+        },
+
+        getInfo : function() {
+            return {
+                longname : 'Embed',
+                author : 'LifeType Team',
+                authorurl : 'http://www.lifetype.net',
+                infourl : 'http://www.lifetype.net',
+                version : tinymce.majorVersion + "." + tinymce.minorVersion
+            };
+        },
+
+        _insertToEditor : function(t, content, mode) {
+            // Parse all object tags and replace them with img
+            cdom = t.ed.dom.create('div');
+            t.ed.dom.setHTML(cdom, content);
+            if( mode == 1)
+                elems = t.ed.dom.select('object:not([class=ltPlayer]):not([class^=ltVideo])', cdom);
+            else
+                elems = t.ed.dom.select('object', cdom);
+
+            tinymce.each(elems, function(e) {
+                e.className = 'ltEmbed';
+                data = Base64.encode(t.ed.dom.getOuterHTML(e));
+                height = e.height;
+                width = e.width;
+                imgHTML = t._getEmbedImgHTML(data, height, width);
+                t.ed.dom.setOuterHTML(e, imgHTML);
+            });
+
+            content = cdom.innerHTML;
+            t.ed.dom.remove(cdom);
+
+            return content;
+        },
+
+        _getFromEditor : function(t, content) {
+            // Parse all img[class=ltVideo*] tags and replace them with object+embed
+            cdom = t.ed.dom.create('div');
+            t.ed.dom.setHTML(cdom, content);
+            elems = t.ed.dom.select('img[class=ltEmbed]', cdom);
+
+            tinymce.each(elems, function(e) {
+                src = e.alt;
+                embedHTML = Base64.decode(src);
+                t.ed.dom.setOuterHTML(e, embedHTML);
+            });
+
+            content = cdom.innerHTML;
+            t.ed.dom.remove(cdom);
+
+            return content;
+        },
+
+        _getEmbedImgHTML : function(data, height, width) {
+            html = '<img width="' + width + '" height="' + height + '"' +
+                   ' src="' + this.url + '/img/spacer.gif' + '" title="' + data + '"' +
+                   ' alt="' + data + '" class="ltEmbed" />';
+
+            return html;
+        }
+    });
+
+    // Register plugin
+    tinymce.PluginManager.add('embed', tinymce.plugins.EmbedPlugin);
 })();

Added: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/img/spacer.gif
===================================================================
(Binary files differ)


Property changes on: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/img/spacer.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/js/dialog.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/embed/js/dialog.js	2010-12-22 11:48:32 UTC (rev 7101)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/js/dialog.js	2010-12-22 17:45:37 UTC (rev 7102)
@@ -1,4 +1,5 @@
 tinyMCEPopup.requireLangPack();
+tinyMCEPopup.resizeToInnerSize();
 
 var EmbedDialog = {
 	init : function() {

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/embed/langs/en_dlg.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/embed/langs/en_dlg.js	2010-12-22 11:48:32 UTC (rev 7101)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/langs/en_dlg.js	2010-12-22 17:45:37 UTC (rev 7102)
@@ -1,4 +1,4 @@
 tinyMCE.addI18n('en.embed_dlg',{
 	title : 'Insert Embed Code',
-	tabone : 'Insert Embed Code'
+	desc : 'Paste embed code here from youTube, Picasa, Vimeo, and etc.'
 });



More information about the pLog-svn mailing list