584. File Comparison Report

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

584.1 Files compared

# Location File Last Modified
1 Mon May 12 13:06:25 2008 UTC
2 Dolphin-v.6.1.0\plugins\tiny_mce\plugins\xhtmlxtras\js attributes.js Thu Mar 27 13:53:26 2008 UTC

584.2 Comparison summary

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

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

584.4 Active regular expressions

No regular expressions were active.

584.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 i nit() {
    9       tinyMC EPopup.res izeToInner Size();
    10       var in st = tinyM CEPopup.ed itor;
    11       var do m = inst.d om;
    12       var el m = inst.s election.g etNode();
    13       var f  = document .forms[0];
    14       var on click = do m.getAttri b(elm, 'on click');
    15  
    16       setFor mValue('ti tle', dom. getAttrib( elm, 'titl e'));
    17       setFor mValue('id ', dom.get Attrib(elm , 'id'));
    18       setFor mValue('st yle', dom. getAttrib( elm, "styl e"));
    19       setFor mValue('di r', dom.ge tAttrib(el m, 'dir')) ;
    20       setFor mValue('la ng', dom.g etAttrib(e lm, 'lang' ));
    21       setFor mValue('ta bindex', d om.getAttr ib(elm, 't abindex',  typeof(elm .tabindex)  != "undef ined" ? el m.tabindex  : ""));
    22       setFor mValue('ac cesskey',  dom.getAtt rib(elm, ' accesskey' , typeof(e lm.accessk ey) != "un defined" ?  elm.acces skey : "") );
    23       setFor mValue('on focus', do m.getAttri b(elm, 'on focus'));
    24       setFor mValue('on blur', dom .getAttrib (elm, 'onb lur'));
    25       setFor mValue('on click', on click);
    26       setFor mValue('on dblclick',  dom.getAt trib(elm,  'ondblclic k'));
    27       setFor mValue('on mousedown' , dom.getA ttrib(elm,  'onmoused own'));
    28       setFor mValue('on mouseup',  dom.getAtt rib(elm, ' onmouseup' ));
    29       setFor mValue('on mouseover' , dom.getA ttrib(elm,  'onmouseo ver'));
    30       setFor mValue('on mousemove' , dom.getA ttrib(elm,  'onmousem ove'));
    31       setFor mValue('on mouseout',  dom.getAt trib(elm,  'onmouseou t'));
    32       setFor mValue('on keypress',  dom.getAt trib(elm,  'onkeypres s'));
    33       setFor mValue('on keydown',  dom.getAtt rib(elm, ' onkeydown' ));
    34       setFor mValue('on keyup', do m.getAttri b(elm, 'on keyup'));
    35       classN ame = dom. getAttrib( elm, 'clas s');
    36  
    37       addCla ssesToList ('classlis t', 'advli nk_styles' );
    38       select ByValue(f,  'classlis t', classN ame, true) ;
    39  
    40       TinyMC E_Editable Selects.in it();
    41   }
    42  
    43   function s etFormValu e(name, va lue) {
    44       if(val ue && docu ment.forms [0].elemen ts[name]){
    45           do cument.for ms[0].elem ents[name] .value = v alue;
    46       }
    47   }
    48  
    49   function i nsertActio n() {
    50       var in st = tinyM CEPopup.ed itor;
    51       var el m = inst.s election.g etNode();
    52  
    53       tinyMC EPopup.exe cCommand(" mceBeginUn doLevel");   
    54       setAll Attribs(el m);
    55       tinyMC EPopup.exe cCommand(" mceEndUndo Level");
    56       tinyMC EPopup.clo se();
    57   }
    58  
    59   function s etAttrib(e lm, attrib , value) {
    60       var fo rmObj = do cument.for ms[0];
    61       var va lueElm = f ormObj.ele ments[attr ib.toLower Case()];
    62       var in st = tinyM CEPopup.ed itor;
    63       var do m = inst.d om;
    64  
    65       if (ty peof(value ) == "unde fined" ||  value == n ull) {
    66           va lue = "";
    67  
    68           if  (valueElm )
    69                value =  valueElm.v alue;
    70       }
    71  
    72       if (va lue != "")  {
    73           do m.setAttri b(elm, att rib.toLowe rCase(), v alue);
    74  
    75           if  (attrib = = "style")
    76                attrib =  "style.cs sText";
    77  
    78           if  (attrib.s ubstring(0 , 2) == 'o n')
    79                value =  'return tr ue;' + val ue;
    80  
    81           if  (attrib = = "class")
    82                attrib =  "classNam e";
    83  
    84           el m[attrib]= value;
    85       } else
    86           el m.removeAt tribute(at trib);
    87   }
    88  
    89   function s etAllAttri bs(elm) {
    90       var f  = document .forms[0];
    91  
    92       setAtt rib(elm, ' title');
    93       setAtt rib(elm, ' id');
    94       setAtt rib(elm, ' style');
    95       setAtt rib(elm, ' class', ge tSelectVal ue(f, 'cla sslist'));
    96       setAtt rib(elm, ' dir');
    97       setAtt rib(elm, ' lang');
    98       setAtt rib(elm, ' tabindex') ;
    99       setAtt rib(elm, ' accesskey' );
    100       setAtt rib(elm, ' onfocus');
    101       setAtt rib(elm, ' onblur');
    102       setAtt rib(elm, ' onclick');
    103       setAtt rib(elm, ' ondblclick ');
    104       setAtt rib(elm, ' onmousedow n');
    105       setAtt rib(elm, ' onmouseup' );
    106       setAtt rib(elm, ' onmouseove r');
    107       setAtt rib(elm, ' onmousemov e');
    108       setAtt rib(elm, ' onmouseout ');
    109       setAtt rib(elm, ' onkeypress ');
    110       setAtt rib(elm, ' onkeydown' );
    111       setAtt rib(elm, ' onkeyup');
    112  
    113       // Ref resh in ol d MSIE
    114   //  if (ti nyMCE.isMS IE5)
    115   //      el m.outerHTM L = elm.ou terHTML;
    116   }
    117  
    118   function i nsertAttri bute() {
    119       tinyMC EPopup.clo se();
    120   }
    121  
    122   tinyMCEPop up.onInit. add(init);
    123   tinyMCEPop up.require LangPack() ;