591. File Comparison Report

Produced on Mon May 12 13:06:26 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.

591.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\plugins\tiny_mce\plugins\xhtmlxtras\jscripts attributes.js Thu Sep 20 08:59:18 2007 UTC
2 Mon May 12 13:06:26 2008 UTC

591.2 Comparison summary

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

591.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

591.4 Active regular expressions

No regular expressions were active.

591.5 Comparison detail

1    /**    
2    * $Id: ed itor_plugi n_src.js 4 2 2006-08- 08 14:32:2 4Z spocke  $    
3    *    
4    * @author  Moxiecode  - based o n work by  Andrew Tet law    
5    * @copyri ght Copyri ght © 2004 -2006, Mox iecode Sys tems AB, A ll rights  reserved.    
6    */    
7      
8   function p reinit() {    
9       // Ini tialize    
10       tinyMC E.setWindo wArg('mce_ windowresi ze', false );    
11   }    
12      
13   function i nit() {    
14       tinyMC EPopup.res izeToInner Size();    
15       var in st = tinyM CE.getInst anceById(t inyMCE.get WindowArg( 'editor_id '));    
16       var el m = inst.g etFocusEle ment();    
17      
18       var f  = document .forms[0];    
19           
20       var on click = ti nyMCE.clea nupEventSt r(tinyMCE. getAttrib( elm, 'oncl ick'));    
21      
22       setFor mValue('ti tle', tiny MCE.getAtt rib(elm, ' title'));    
23       setFor mValue('id ', tinyMCE .getAttrib (elm, 'id' ));    
24       setFor mValue('st yle', tiny MCE.serial izeStyle(t inyMCE.par seStyle(ti nyMCE.getA ttrib(elm,  "style")) ));    
25       setFor mValue('di r', tinyMC E.getAttri b(elm, 'di r'));    
26       setFor mValue('la ng', tinyM CE.getAttr ib(elm, 'l ang'));    
27       setFor mValue('ta bindex', t inyMCE.get Attrib(elm , 'tabinde x', typeof (elm.tabin dex) != "u ndefined"  ? elm.tabi ndex : "") );    
28       setFor mValue('ac cesskey',  tinyMCE.ge tAttrib(el m, 'access key', type of(elm.acc esskey) !=  "undefine d" ? elm.a ccesskey :  ""));    
29       setFor mValue('on focus', ti nyMCE.clea nupEventSt r(tinyMCE. getAttrib( elm, 'onfo cus')));    
30       setFor mValue('on blur', tin yMCE.clean upEventStr (tinyMCE.g etAttrib(e lm, 'onblu r')));    
31       setFor mValue('on click', on click);    
32       setFor mValue('on dblclick',  tinyMCE.c leanupEven tStr(tinyM CE.getAttr ib(elm, 'o ndblclick' )));    
33       setFor mValue('on mousedown' , tinyMCE. cleanupEve ntStr(tiny MCE.getAtt rib(elm, ' onmousedow n')));    
34       setFor mValue('on mouseup',  tinyMCE.cl eanupEvent Str(tinyMC E.getAttri b(elm, 'on mouseup')) );    
35       setFor mValue('on mouseover' , tinyMCE. cleanupEve ntStr(tiny MCE.getAtt rib(elm, ' onmouseove r')));    
36       setFor mValue('on mousemove' , tinyMCE. cleanupEve ntStr(tiny MCE.getAtt rib(elm, ' onmousemov e')));    
37       setFor mValue('on mouseout',  tinyMCE.c leanupEven tStr(tinyM CE.getAttr ib(elm, 'o nmouseout' )));    
38       setFor mValue('on keypress',  tinyMCE.c leanupEven tStr(tinyM CE.getAttr ib(elm, 'o nkeypress' )));    
39       setFor mValue('on keydown',  tinyMCE.cl eanupEvent Str(tinyMC E.getAttri b(elm, 'on keydown')) );    
40       setFor mValue('on keyup', ti nyMCE.clea nupEventSt r(tinyMCE. getAttrib( elm, 'onke yup')));    
41           
42       classN ame = tiny MCE.getVis ualAidClas s(tinyMCE. getAttrib( elm, 'clas s'), false );    
43               
44       addCla ssesToList ('classlis t', 'advli nk_styles' );    
45       select ByValue(f,  'classlis t', classN ame, true) ;    
46           
47       TinyMC E_Editable Selects.in it();    
48   }    
49      
50   function s etFormValu e(name, va lue) {    
51       if(val ue && docu ment.forms [0].elemen ts[name]){    
52           do cument.for ms[0].elem ents[name] .value = v alue;    
53       }    
54   }    
55      
56   function i nsertActio n() {    
57       var in st = tinyM CE.getInst anceById(t inyMCE.get WindowArg( 'editor_id '));    
58       var el m = inst.g etFocusEle ment();    
59      
60       tinyMC EPopup.exe cCommand(" mceBeginUn doLevel");       
61       tinyMC EPopup.res toreSelect ion();    
62           
63       setAll Attribs(el m);    
64           
65       tinyMC E.handleVi sualAid(in st.getBody (), true,  inst.visua lAid, inst );    
66       tinyMC E._setEven tsEnabled( inst.getBo dy(), fals e);    
67       tinyMC EPopup.exe cCommand(" mceEndUndo Level");    
68       tinyMC EPopup.clo se();    
69   }    
70      
71   function s etAttrib(e lm, attrib , value) {    
72       var fo rmObj = do cument.for ms[0];    
73       var va lueElm = f ormObj.ele ments[attr ib.toLower Case()];    
74      
75       if (ty peof(value ) == "unde fined" ||  value == n ull) {    
76           va lue = "";    
77      
78           if  (valueElm )    
79                value =  valueElm.v alue;    
80       }    
81      
82       if (va lue != "")  {    
83           ti nyMCE.setA ttrib(elm,  attrib.to LowerCase( ), value);    
84      
85           if  (attrib = = "style")    
86                attrib =  "style.cs sText";    
87      
88           if  (attrib.s ubstring(0 , 2) == 'o n')    
89                value =  'return tr ue;' + val ue;    
90      
91           if  (attrib = = "class")    
92                attrib =  "classNam e";    
93      
94           ev al('elm.'  + attrib +  "=value;" );    
95       } else    
96           el m.removeAt tribute(at trib);    
97   }    
98      
99   function s etAllAttri bs(elm) {    
100       var f  = document .forms[0];    
101      
102       setAtt rib(elm, ' title');    
103       setAtt rib(elm, ' id');    
104       setAtt rib(elm, ' style');    
105       setAtt rib(elm, ' class', ge tSelectVal ue(f, 'cla sslist'));    
106       setAtt rib(elm, ' dir');    
107       setAtt rib(elm, ' lang');    
108       setAtt rib(elm, ' tabindex') ;    
109       setAtt rib(elm, ' accesskey' );    
110       setAtt rib(elm, ' onfocus');    
111       setAtt rib(elm, ' onblur');    
112       setAtt rib(elm, ' onclick');    
113       setAtt rib(elm, ' ondblclick ');    
114       setAtt rib(elm, ' onmousedow n');    
115       setAtt rib(elm, ' onmouseup' );    
116       setAtt rib(elm, ' onmouseove r');    
117       setAtt rib(elm, ' onmousemov e');    
118       setAtt rib(elm, ' onmouseout ');    
119       setAtt rib(elm, ' onkeypress ');    
120       setAtt rib(elm, ' onkeydown' );    
121       setAtt rib(elm, ' onkeyup');    
122      
123       // Ref resh in ol d MSIE    
124       if (ti nyMCE.isMS IE5)    
125           el m.outerHTM L = elm.ou terHTML;    
126   }    
127      
128   function i nsertAttri bute() {    
129       tinyMC EPopup.clo se();    
130   }