[pLog-svn] r7104 - in plog/branches/lifetype-1.2/js/tinymce/plugins: embed insertresource insertvideo

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Jan 4 02:57:04 EST 2011


Author: mark
Date: 2011-01-04 02:57:04 -0500 (Tue, 04 Jan 2011)
New Revision: 7104

Modified:
   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/insertresource/editor_plugin.js
   plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin_src.js
   plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js
   plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin_src.js
Log:
Use tinymce.DOM instead of tinymce.editor.DOM, the later one will add a lot of mce_* attributes to dom element.

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 17:51:41 UTC (rev 7103)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin.js	2011-01-04 07:57:04 UTC (rev 7104)
@@ -13,6 +13,6 @@
 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
+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=tinymce.DOM.create('div');tinymce.DOM.setHTML(cdom,content);if(mode==1)
+elems=tinymce.DOM.select('object:not([class=ltPlayer]):not([class^=ltVideo])',cdom);else
+elems=tinymce.DOM.select('object',cdom);tinymce.each(elems,function(e){e.className='ltEmbed';data=Base64.encode(tinymce.DOM.getOuterHTML(e));height=e.height;width=e.width;imgHTML=t._getEmbedImgHTML(data,height,width);tinymce.DOM.setOuterHTML(e,imgHTML);});content=cdom.innerHTML;tinymce.DOM.remove(cdom);return content;},_getFromEditor:function(t,content){cdom=tinymce.DOM.create('div');tinymce.DOM.setHTML(cdom,content);elems=tinymce.DOM.select('img[class=ltEmbed]',cdom);tinymce.each(elems,function(e){src=e.alt;embedHTML=Base64.decode(src);tinymce.DOM.setOuterHTML(e,embedHTML);});content=cdom.innerHTML;tinymce.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 17:51:41 UTC (rev 7103)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/embed/editor_plugin_src.js	2011-01-04 07:57:04 UTC (rev 7104)
@@ -215,42 +215,42 @@
 
         _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);
+            cdom = tinymce.DOM.create('div');
+            tinymce.DOM.setHTML(cdom, content);
             if( mode == 1)
-                elems = t.ed.dom.select('object:not([class=ltPlayer]):not([class^=ltVideo])', cdom);
+                elems = tinymce.DOM.select('object:not([class=ltPlayer]):not([class^=ltVideo])', cdom);
             else
-                elems = t.ed.dom.select('object', cdom);
+                elems = tinymce.DOM.select('object', cdom);
 
             tinymce.each(elems, function(e) {
                 e.className = 'ltEmbed';
-                data = Base64.encode(t.ed.dom.getOuterHTML(e));
+                data = Base64.encode(tinymce.DOM.getOuterHTML(e));
                 height = e.height;
                 width = e.width;
                 imgHTML = t._getEmbedImgHTML(data, height, width);
-                t.ed.dom.setOuterHTML(e, imgHTML);
+                tinymce.DOM.setOuterHTML(e, imgHTML);
             });
 
             content = cdom.innerHTML;
-            t.ed.dom.remove(cdom);
+            tinymce.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);
+            cdom = tinymce.DOM.create('div');
+            tinymce.DOM.setHTML(cdom, content);
+            elems = tinymce.DOM.select('img[class=ltEmbed]', cdom);
 
             tinymce.each(elems, function(e) {
                 src = e.alt;
                 embedHTML = Base64.decode(src);
-                t.ed.dom.setOuterHTML(e, embedHTML);
+                tinymce.DOM.setOuterHTML(e, embedHTML);
             });
 
             content = cdom.innerHTML;
-            t.ed.dom.remove(cdom);
+            tinymce.DOM.remove(cdom);
 
             return content;
         },

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin.js	2010-12-22 17:51:41 UTC (rev 7103)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin.js	2011-01-04 07:57:04 UTC (rev 7104)
@@ -1,4 +1,4 @@
 
 (function(){tinymce.PluginManager.requireLangPack('insertresource');tinymce.create('tinymce.plugins.InsertResourcePlugin',{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);});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.addCommand('mceInsertResource',function(){ed.windowManager.open({file:url+'../../../../../admin.php?op=resourceList&mode=1',width:500,height:450,inline:1},{plugin_url:url});});ed.addButton('insertresource',{title:'insertresource.desc',cmd:'mceInsertResource',image:url+'/img/insertresource.gif'});ed.onInit.add(function(){if(ed.settings.content_css!==false)
-ed.dom.loadCSS(url+"/css/content.css");});},getInfo:function(){return{longname:'Insert Resource',author:'LifeType Team',authorurl:'http://www.lifetype.net',infourl:'http://www.lifetype.net',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_insertToEditor:function(t,content){cdom=t.ed.dom.create('div');t.ed.dom.setHTML(cdom,content);elems=t.ed.dom.select('object[class=ltPlayer]',cdom);tinymce.each(elems,function(e){html=e.innerHTML;result=html.match(/.*file=([a-zA-Z0-9\-\/:._%]*)/i);src=(result?result[1]:0);if(src){height=(e.height?e.height:20);width=(e.width?e.width:320);imgHTML=t._getImgPlayerHTML(src,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=ltFlashPlayer]',cdom);tinymce.each(elems,function(e){src=e.alt;if(src){height=(e.height?e.height:20);width=(e.width?e.width:320);em
 bedHTML=getFlashPlayerHTML(src,height,width);t.ed.dom.setOuterHTML(e,embedHTML);}});content=cdom.innerHTML;t.ed.dom.remove(cdom);return content;},_getImgPlayerHTML:function(src,height,width){html='<img width="'+width+'" height="'+height+'"'+' src="'+this.url+'/img/spacer.gif'+'" title="'+src+'"'+' alt="'+src+'" class="ltFlashPlayer" />';return html;}});tinymce.PluginManager.add('insertresource',tinymce.plugins.InsertResourcePlugin);})();
\ No newline at end of file
+ed.dom.loadCSS(url+"/css/content.css");});},getInfo:function(){return{longname:'Insert Resource',author:'LifeType Team',authorurl:'http://www.lifetype.net',infourl:'http://www.lifetype.net',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_insertToEditor:function(t,content){cdom=tinymce.DOM.create('div');tinymce.DOM.setHTML(cdom,content);elems=tinymce.DOM.select('object[class=ltPlayer]',cdom);tinymce.each(elems,function(e){html=e.innerHTML;result=html.match(/.*file=([a-zA-Z0-9\-\/:._%]*)/i);src=(result?result[1]:0);if(src){height=(e.height?e.height:20);width=(e.width?e.width:320);imgHTML=t._getImgPlayerHTML(src,height,width);tinymce.DOM.setOuterHTML(e,imgHTML);}});content=cdom.innerHTML;tinymce.DOM.remove(cdom);return content;},_getFromEditor:function(t,content){cdom=tinymce.DOM.create('div');tinymce.DOM.setHTML(cdom,content);elems=tinymce.DOM.select('img[class=ltFlashPlayer]',cdom);tinymce.each(elems,function(e){src=e.alt;if(src){height=(e.height?e.height:20);width=
 (e.width?e.width:320);embedHTML=getFlashPlayerHTML(src,height,width);tinymce.DOM.setOuterHTML(e,embedHTML);}});content=cdom.innerHTML;tinymce.DOM.remove(cdom);return content;},_getImgPlayerHTML:function(src,height,width){html='<img width="'+width+'" height="'+height+'"'+' src="'+this.url+'/img/spacer.gif'+'" title="'+src+'"'+' alt="'+src+'" class="ltFlashPlayer" />';return html;}});tinymce.PluginManager.add('insertresource',tinymce.plugins.InsertResourcePlugin);})();
\ No newline at end of file

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin_src.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin_src.js	2010-12-22 17:51:41 UTC (rev 7103)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertresource/editor_plugin_src.js	2011-01-04 07:57:04 UTC (rev 7104)
@@ -62,9 +62,9 @@
 
         _insertToEditor : function(t,content){
             // Parse all object[class=ltPlayer] tags and replace them with img
-            cdom = t.ed.dom.create('div');
-            t.ed.dom.setHTML(cdom, content);
-            elems = t.ed.dom.select('object[class=ltPlayer]', cdom);
+            cdom = tinymce.DOM.create('div');
+            tinymce.DOM.setHTML(cdom, content);
+            elems = tinymce.DOM.select('object[class=ltPlayer]', cdom);
 
             tinymce.each(elems, function(e) {
                 html = e.innerHTML;
@@ -74,21 +74,21 @@
                     height = (e.height? e.height : 20);
                     width = (e.width ? e.width : 320);
                     imgHTML = t._getImgPlayerHTML(src, height, width);
-                    t.ed.dom.setOuterHTML(e, imgHTML);
+                    tinymce.DOM.setOuterHTML(e, imgHTML);
                 }
             });
 
             content = cdom.innerHTML;
-            t.ed.dom.remove(cdom);
+            tinymce.DOM.remove(cdom);
 
             return content;
         },
 
         _getFromEditor : function(t, content) {
             // Parse all img[class=ltFlashPlayer] 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=ltFlashPlayer]', cdom);
+            cdom = tinymce.DOM.create('div');
+            tinymce.DOM.setHTML(cdom, content);
+            elems = tinymce.DOM.select('img[class=ltFlashPlayer]', cdom);
 
             tinymce.each(elems, function(e) {
                 src = e.alt;
@@ -96,12 +96,12 @@
                     height = (e.height? e.height : 20);
                     width = (e.width ? e.width : 320);
                     embedHTML = getFlashPlayerHTML(src, height, width);
-                    t.ed.dom.setOuterHTML(e, embedHTML);
+                    tinymce.DOM.setOuterHTML(e, embedHTML);
                 }
             });
 
             content = cdom.innerHTML;
-            t.ed.dom.remove(cdom);
+            tinymce.DOM.remove(cdom);
 
             return content;
         },

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js	2010-12-22 17:51:41 UTC (rev 7103)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js	2011-01-04 07:57:04 UTC (rev 7104)
@@ -1,7 +1,7 @@
 
 (function(){tinymce.PluginManager.requireLangPack('insertvideo');tinymce.create('tinymce.plugins.InsertVideoPlugin',{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);});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.addCommand('mceInsertVideo',function(){ed.windowManager.open({file:url+'/videoinput.html',width:500,height:300,inline:1},{plugin_url:url});});ed.addButton('insertvideo',{title:'insertvideo.desc',cmd:'mceInsertVideo',image:url+'/img/youtube.png'});ed.onInit.add(function(){if(ed.settings.content_css!==false)
-ed.dom.loadCSS(url+"/css/content.css");});},getInfo:function(){return{longname:'Insert Video',author:'LifeType Team',authorurl:'http://www.lifetype.net',infourl:'http://www.lifetype.net',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_insertToEditor:function(t,content){cdom=t.ed.dom.create('div');t.ed.dom.setHTML(cdom,content);elems=t.ed.dom.select('object[data]',cdom);tinymce.each(elems,function(e){src=e.data;cls=t._getVideoType(src);if(src&&cls){height=e.height;width=e.width;imgHTML=t._getVideoImgHTML(src,height,width,cls);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^=ltVideo]',cdom);tinymce.each(elems,function(e){cls=t._isValidVideoType(e.className);src=e.alt;if(src&&cls){height=e.height;width=e.width;embedHTML=t._getVideoFlashHTML(src,height,width,cls);t.ed.dom.setOuterHTML(e,embedHT
 ML);}});content=cdom.innerHTML;t.ed.dom.remove(cdom);return content;},_getVideoType:function(url)
+ed.dom.loadCSS(url+"/css/content.css");});},getInfo:function(){return{longname:'Insert Video',author:'LifeType Team',authorurl:'http://www.lifetype.net',infourl:'http://www.lifetype.net',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_insertToEditor:function(t,content){cdom=tinymce.DOM.create('div');tinymce.DOM.setHTML(cdom,content);elems=tinymce.DOM.select('object[data]',cdom);tinymce.each(elems,function(e){src=e.data;cls=t._getVideoType(src);if(src&&cls){height=e.height;width=e.width;imgHTML=t._getVideoImgHTML(src,height,width,cls);tinymce.DOM.setOuterHTML(e,imgHTML);}});content=cdom.innerHTML;tinymce.DOM.remove(cdom);return content;},_getFromEditor:function(t,content){cdom=tinymce.DOM.create('div');tinymce.DOM.setHTML(cdom,content);elems=tinymce.DOM.select('img[class^=ltVideo]',cdom);tinymce.each(elems,function(e){cls=t._isValidVideoType(e.className);src=e.alt;if(src&&cls){height=e.height;width=e.width;embedHTML=t._getVideoFlashHTML(src,height,width,cls);tinymce
 .DOM.setOuterHTML(e,embedHTML);}});content=cdom.innerHTML;tinymce.DOM.remove(cdom);return content;},_getVideoType:function(url)
 {var sites={GoogleVideo:{regexp:/^http:\/\/video\.google\.com\//,cls:'ltVideoGoogleVideo'},YouTube:{regexp:/^http:\/\/.{2,3}\.youtube\.com\//,cls:'ltVideoYouTube'},Metacafe:{regexp:/^http:\/\/www\.metacafe\.com\//,cls:'ltVideoMetacafe'},Ifilm:{regexp:/^http:\/\/www\.ifilm\.com\//,cls:'ltVideoIfilm'},VideoGoear:{regexp:/^http:\/\/www\.goear.com\//,cls:'ltVideoGoear'},Grouper:{regexp:/^http:\/\/www\.grouper\.com\//,cls:'ltVideoGrouper'},DailyMotion:{regexp:/^http:\/\/www\.dailymotion\.com\//,cls:'ltVideoDailymot'},Vimeo:{regexp:/^http:\/\/vimeo\.com\//,cls:'ltVideoVimeo'}};var cls='';for(site in sites){if(url.match(sites[site].regexp)){cls=sites[site].cls;break;}}
 return(cls);},_isValidVideoType:function(cls){result=cls.match(/^ltVideo(GoogleVideo|YouTube|Metacafe|Ifilm|Goear|Grouper|Dailymot|Vimeo)/);return(result?'ltVideo'+result[1]:false);},_getVideoImgHTML:function(src,height,width,cls){html='<img width="'+width+'" height="'+height+'"'+' src="'+this.url+'/img/spacer.gif'+'" title="'+src+'"'+' alt="'+src+'" class="'+cls+'" />';return html;},_getVideoFlashHTML:function(url,height,width,cls)
 {html='<object type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" data="'+url+'" class="'+cls+'">'+'<param name="movie" value="'+url+'" />'+'<param name="wmode" value="transparent" />'+'<param name="allowScriptAccess" value="sameDomain" />'+'<param name="quality" value="best" />'+'<param name="bgcolor" value="#ffffff" />';if(cls=='ltVideoGoear'){html+='<param name="FlashVars" value="'+url.substring(43,url.length)+'" />';}else{html+='<param name="FlashVars" value="playerMode=embedded" />';}

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin_src.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin_src.js	2010-12-22 17:51:41 UTC (rev 7103)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin_src.js	2011-01-04 07:57:04 UTC (rev 7104)
@@ -62,9 +62,9 @@
 
         _insertToEditor : function(t, content) {
             // Parse all object tags and replace them with img
-            cdom = t.ed.dom.create('div');
-            t.ed.dom.setHTML(cdom, content);
-            elems = t.ed.dom.select('object[data]', cdom);
+            cdom = tinymce.DOM.create('div');
+            tinymce.DOM.setHTML(cdom, content);
+            elems = tinymce.DOM.select('object[data]', cdom);
 
             tinymce.each(elems, function(e) {
                 src = e.data;
@@ -73,21 +73,21 @@
                     height = e.height;
                     width = e.width;
                     imgHTML = t._getVideoImgHTML(src, height, width, cls);
-                    t.ed.dom.setOuterHTML(e, imgHTML);
+                    tinymce.DOM.setOuterHTML(e, imgHTML);
                 }
             });
 
             content = cdom.innerHTML;
-            t.ed.dom.remove(cdom);
+            tinymce.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^=ltVideo]', cdom);
+            cdom = tinymce.DOM.create('div');
+            tinymce.DOM.setHTML(cdom, content);
+            elems = tinymce.DOM.select('img[class^=ltVideo]', cdom);
 
             tinymce.each(elems, function(e) {
                 cls = t._isValidVideoType(e.className);
@@ -96,12 +96,12 @@
                     height = e.height;
                     width = e.width;
                     embedHTML = t._getVideoFlashHTML(src, height, width, cls);
-                    t.ed.dom.setOuterHTML(e, embedHTML);
+                    tinymce.DOM.setOuterHTML(e, embedHTML);
                 }
             });
 
             content = cdom.innerHTML;
-            t.ed.dom.remove(cdom);
+            tinymce.DOM.remove(cdom);
 
             return content;
         },



More information about the pLog-svn mailing list