385. File Comparison Report

Produced on Mon May 12 13:05:58 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

385.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\plugins\tiny_mce\plugins\advimage editor_plugin.js Thu Sep 20 08:59:00 2007 UTC
2 Dolphin-v.6.1.0\plugins\tiny_mce\plugins\advimage editor_plugin.js Thu Mar 27 13:53:24 2008 UTC

385.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 1 2
Inserted 0 0
Removed 0 0

385.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

385.4 Active regular expressions

No regular expressions were active.

385.5 Comparison detail

1   tinyMCE.im portPlugin LanguagePa ck('advima ge');var T inyMCE_Adv ancedImage Plugin={ge tInfo:func tion(){ret urn{longna me:'Advanc ed image', author:'Mo xiecode Sy stems AB', authorurl: 'http://ti nymce.moxi ecode.com' ,infourl:' http://wik i.moxiecod e.com/inde x.php/Tiny MCE:Plugin s/advimage ',version: tinyMCE.ma jorVersion +"."+tinyM CE.minorVe rsion}},ge tControlHT ML:functio n(cn){swit ch(cn){cas e"image":r eturn tiny MCE.getBut tonHTML(cn ,'lang_ima ge_desc',' {$themeurl }/images/i mage.gif', 'mceAdvIma ge')}retur n""},execC ommand:fun ction(edit or_id,elem ent,comman d,user_int erface,val ue){switch (command){ case"mceAd vImage":va r template =new Array ();templat e['file']= '../../plu gins/advim age/image. htm';templ ate['width ']=480;tem plate['hei ght']=380; template[' width']+=t inyMCE.get Lang('lang _advimage_ delta_widt h',0);temp late['heig ht']+=tiny MCE.getLan g('lang_ad vimage_del ta_height' ,0);var in st=tinyMCE .getInstan ceById(edi tor_id);va r elm=inst .getFocusE lement();i f(elm!=nul l&&tinyMCE .getAttrib (elm,'clas s').indexO f('mceItem ')!=-1)ret urn true;t inyMCE.ope nWindow(te mplate,{ed itor_id:ed itor_id,in line:"yes" });return  true}retur n false},c leanup:fun ction(type ,content){ switch(typ e){case"in sert_to_ed itor_dom": var imgs=c ontent.get ElementsBy TagName("i mg"),src,i ;for(i=0;i <imgs.leng th;i++){va r onmouseo ver=tinyMC E.cleanupE ventStr(ti nyMCE.getA ttrib(imgs [i],'onmou seover')); var onmous eout=tinyM CE.cleanup EventStr(t inyMCE.get Attrib(img s[i],'onmo useout')); if((src=th is._getIma geSrc(onmo useover))! =""){if(ti nyMCE.getP aram('conv ert_urls') )src=tinyM CE.convert RelativeTo AbsoluteUR L(tinyMCE. settings[' base_href' ],src);img s[i].setAt tribute('o nmouseover ',"this.sr c='"+src+" ';")}if((s rc=this._g etImageSrc (onmouseou t))!=""){i f(tinyMCE. getParam(' convert_ur ls'))src=t inyMCE.con vertRelati veToAbsolu teURL(tiny MCE.settin gs['base_h ref'],src) ;imgs[i].s etAttribut e('onmouse out',"this .src='"+sr c+"';")}}b reak;case" get_from_e ditor_dom" :var imgs= content.ge tElementsB yTagName(" img");for( var i=0;i< imgs.lengt h;i++){var  onmouseov er=tinyMCE .cleanupEv entStr(tin yMCE.getAt trib(imgs[ i],'onmous eover'));v ar onmouse out=tinyMC E.cleanupE ventStr(ti nyMCE.getA ttrib(imgs [i],'onmou seout'));i f((src=thi s._getImag eSrc(onmou seover))!= ""){if(tin yMCE.getPa ram('conve rt_urls')) src=eval(t inyMCE.set tings['url converter_ callback'] +"(src, nu ll, true); ");imgs[i] .setAttrib ute('onmou seover',"t his.src='" +src+"';") }if((src=t his._getIm ageSrc(onm ouseout))! =""){if(ti nyMCE.getP aram('conv ert_urls') )src=eval( tinyMCE.se ttings['ur lconverter _callback' ]+"(src, n ull, true) ;");imgs[i ].setAttri bute('onmo useout',"t his.src='" +src+"';") }}break}re turn conte nt},handle NodeChange :function( editor_id, node,undo_ index,undo _levels,vi sual_aid,a ny_selecti on){if(nod e==null)re turn;do{if (node.node Name=="IMG "&&tinyMCE .getAttrib (node,'cla ss').index Of('mceIte m')==-1){t inyMCE.swi tchClass(e ditor_id+' _advimage' ,'mceButto nSelected' );return t rue}}while ((node=nod e.parentNo de));tinyM CE.switchC lass(edito r_id+'_adv image','mc eButtonNor mal');retu rn true},_ getImageSr c:function (s){var sr ,p=-1;if(! s)return"" ;if((p=s.i ndexOf('th is.src=')) !=-1){sr=s .substring (p+10);sr= sr.substri ng(0,sr.in dexOf('\'' ));return  sr}return" "}};tinyMC E.addPlugi n("advimag e",TinyMCE _AdvancedI magePlugin );   1   (function( ){tinymce. create('ti nymce.plug ins.Advanc edImagePlu gin',{init :function( ed,url){ed .addComman d('mceAdvI mage',func tion(){if( ed.dom.get Attrib(ed. selection. getNode(), 'class').i ndexOf('mc eItem')!=- 1)return;e d.windowMa nager.open ({file:url +'/image.h tm',width: 480+parseI nt(ed.getL ang('advim age.delta_ width',0)) ,height:38 5+parseInt (ed.getLan g('advimag e.delta_he ight',0)), inline:1}, {plugin_ur l:url});}) ;ed.addBut ton('image ',{title:' advimage.i mage_desc' ,cmd:'mceA dvImage'}) ;},getInfo :function( ){return{l ongname:'A dvanced im age',autho r:'Moxieco de Systems  AB',autho rurl:'http ://tinymce .moxiecode .com',info url:'http: //wiki.mox iecode.com /index.php /TinyMCE:P lugins/adv image',ver sion:tinym ce.majorVe rsion+"."+ tinymce.mi norVersion };}});tiny mce.Plugin Manager.ad d('advimag e',tinymce .plugins.A dvancedIma gePlugin); })();