Produced by Araxis Merge on 2/1/2017 2:57:54 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\js\ckeditor\plugins\table\dialogs | table.js | Tue Dec 20 19:50:43 2016 UTC |
| 2 | Wed Feb 1 19:57:54 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 21 |
| 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 |
No regular expressions were active.
| 1 | /* | |||||
| 2 | Copyright (c) 2003- 2015, CKSo urce - Fre derico Kna bben. All rights res erved. | |||||
| 3 | This soft ware is co vered by C KEditor Co mmercial L icense. Us age withou t proper l icense is prohibited . | |||||
| 4 | */ | |||||
| 5 | (function( ){function v(a){for( var f=0,n= 0,m=0,p,e= a.$.rows.l ength;m<e; m++){p=a.$ .rows[m];f or(var d=f =0,c,b=p.c ells.lengt h;d<b;d++) c=p.cells[ d],f+=c.co lSpan;f>n& &(n=f)}ret urn n}func tion r(a){ return fun ction(){va r f=this.g etValue(), f=!!(CKEDI TOR.dialog .validate. integer()( f)&&0<f);f ||(alert(a ),this.sel ect());ret urn f}}fun ction q(a, f){var n=f unction(e) {return ne w CKEDITOR .dom.eleme nt(e,a.doc ument)},q= a.editable (),p=a.plu gins.dialo gadvtab;re turn{title :a.lang.ta ble.title, minWidth:3 10,minHeig ht:CKEDITO R.env.ie? | |||||
| 6 | 310:280,on Load:funct ion(){var e=this,a=e .getConten tElement(" advanced", "advStyles ");if(a)a. on("change ",function (){var a=t his.getSty le("width" ,""),b=e.g etContentE lement("in fo","txtWi dth");b&&b .setValue( a,!0);a=th is.getStyl e("height" ,"");(b=e. getContent Element("i nfo","txtH eight"))&& b.setValue (a,!0)})}, onShow:fun ction(){va r e=a.getS election() ,d=e.getRa nges(),c,b =this.getC ontentElem ent("info" ,"txtRows" ),h=this.g etContentE lement("in fo","txtCo ls"),t=thi s.getConte ntElement( "info","tx tWidth"),g =this.getC ontentElem ent("info" , | |||||
| 7 | "txtHeight ");"tableP roperties" ==f&&((e=e .getSelect edElement( ))&&e.is(" table")?c= e:0<d.leng th&&(CKEDI TOR.env.we bkit&&d[0] .shrink(CK EDITOR.NOD E_ELEMENT) ,c=a.eleme ntPath(d[0 ].getCommo nAncestor( !0)).conta ins("table ",1)),this ._.selecte dElement=c );c?(this. setupConte nt(c),b&&b .disable() ,h&&h.disa ble()):(b& &b.enable( ),h&&h.ena ble());t&& t.onChange ();g&&g.on Change()}, onOk:funct ion(){var e=a.getSel ection(),d =this._.se lectedElem ent&&e.cre ateBookmar ks(),c=thi s._.select edElement| |n("table" ),b={};thi s.commitCo ntent(b, | |||||
| 8 | c);if(b.in fo){b=b.in fo;if(!thi s._.select edElement) for(var h= c.append(n ("tbody")) ,f=parseIn t(b.txtRow s,10)||0,g =parseInt( b.txtCols, 10)||0,k=0 ;k<f;k++)f or(var l=h .append(n( "tr")),m=0 ;m<g;m++)l .append(n( "td")).app endBogus() ;f=b.selHe aders;if(! c.$.tHead& &("row"==f ||"both"== f)){l=new CKEDITOR.d om.element (c.$.creat eTHead()); h=c.getEle mentsByTag ("tbody"). getItem(0) ;h=h.getEl ementsByTa g("tr").ge tItem(0);f or(k=0;k<h .getChildC ount();k++ )g=h.getCh ild(k),g.t ype!=CKEDI TOR.NODE_E LEMENT||g. data("cke- bookmark") || | |||||
| 9 | (g.renameN ode("th"), g.setAttri bute("scop e","col")) ;l.append( h.remove() )}if(null! ==c.$.tHea d&&"row"!= f&&"both"! =f){l=new CKEDITOR.d om.element (c.$.tHead );h=c.getE lementsByT ag("tbody" ).getItem( 0);for(m=h .getFirst( );0<l.getC hildCount( );){h=l.ge tFirst();f or(k=0;k<h .getChildC ount();k++ )g=h.getCh ild(k),g.t ype==CKEDI TOR.NODE_E LEMENT&&(g .renameNod e("td"),g. removeAttr ibute("sco pe"));h.in sertBefore (m)}l.remo ve()}if(!t his.hasCol umnHeaders &&("col"== f||"both"= =f))for(l= 0;l<c.$.ro ws.length; l++)g=new CKEDITOR.d om.element (c.$.rows[ l].cells[0 ]), | |||||
| 10 | g.renameNo de("th"),g .setAttrib ute("scope ","row");i f(this.has ColumnHead ers&&"col" !=f&&"both "!=f)for(k =0;k<c.$.r ows.length ;k++)l=new CKEDITOR. dom.elemen t(c.$.rows [k]),"tbod y"==l.getP arent().ge tName()&&( g=new CKED ITOR.dom.e lement(l.$ .cells[0]) ,g.renameN ode("td"), g.removeAt tribute("s cope"));b. txtHeight? c.setStyle ("height", b.txtHeigh t):c.remov eStyle("he ight");b.t xtWidth?c. setStyle(" width",b.t xtWidth):c .removeSty le("width" );c.getAtt ribute("st yle")||c.r emoveAttri bute("styl e")}if(thi s._.select edElement) try{e.sele ctBookmark s(d)}catch (p){}else a.insertEl ement(c), | |||||
| 11 | setTimeout (function( ){var e=ne w CKEDITOR .dom.eleme nt(c.$.row s[0].cells [0]),b=a.c reateRange ();b.moveT oPosition( e,CKEDITOR .POSITION_ AFTER_STAR T);b.selec t()},0)},c ontents:[{ id:"info", label:a.la ng.table.t itle,eleme nts:[{type :"hbox",wi dths:[null ,null],sty les:["vert ical-align :top"],chi ldren:[{ty pe:"vbox", padding:0, children:[ {type:"tex t",id:"txt Rows","def ault":3,la bel:a.lang .table.row s,required :!0,contro lStyle:"wi dth:5em",v alidate:r( a.lang.tab le.invalid Rows),setu p:function (e){this.s etValue(e. $.rows.len gth)}, | |||||
| 12 | commit:m}, {type:"tex t",id:"txt Cols","def ault":2,la bel:a.lang .table.col umns,requi red:!0,con trolStyle: "width:5em ",validate :r(a.lang. table.inva lidCols),s etup:funct ion(e){thi s.setValue (v(e))},co mmit:m},{t ype:"html" ,html:"\x2 6nbsp;"},{ type:"sele ct",id:"se lHeaders", requiredCo ntent:"th" ,"default" :"",label: a.lang.tab le.headers ,items:[[a .lang.tabl e.headersN one,""],[a .lang.tabl e.headersR ow,"row"], [a.lang.ta ble.header sColumn,"c ol"],[a.la ng.table.h eadersBoth ,"both"]], setup:func tion(e){va r a=this.g etDialog() ; | |||||
| 13 | a.hasColum nHeaders=! 0;for(var c=0;c<e.$. rows.lengt h;c++){var b=e.$.row s[c].cells [0];if(b&& "th"!=b.no deName.toL owerCase() ){a.hasCol umnHeaders =!1;break} }null!==e. $.tHead?th is.setValu e(a.hasCol umnHeaders ?"both":"r ow"):this. setValue(a .hasColumn Headers?"c ol":"")},c ommit:m},{ type:"text ",id:"txtB order",req uiredConte nt:"table[ border]"," default":a .filter.ch eck("table [border]") ?1:0,label :a.lang.ta ble.border ,controlSt yle:"width :3em",vali date:CKEDI TOR.dialog .validate. number(a.l ang.table. invalidBor der),setup :function( a){this.se tValue(a.g etAttribut e("border" )|| | |||||
| 14 | "")},commi t:function (a,d){this .getValue( )?d.setAtt ribute("bo rder",this .getValue( )):d.remov eAttribute ("border") }},{id:"cm bAlign",ty pe:"select ",required Content:"t able[align ]","defaul t":"",labe l:a.lang.c ommon.alig n,items:[[ a.lang.com mon.notSet ,""],[a.la ng.common. alignLeft, "left"],[a .lang.comm on.alignCe nter,"cent er"],[a.la ng.common. alignRight ,"right"]] ,setup:fun ction(a){t his.setVal ue(a.getAt tribute("a lign")||"" )},commit: function(a ,d){this.g etValue()? d.setAttri bute("alig n",this.ge tValue()): d.removeAt tribute("a lign")}}]} , | |||||
| 15 | {type:"vbo x",padding :0,childre n:[{type:" hbox",widt hs:["5em"] ,children: [{type:"te xt",id:"tx tWidth",re quiredCont ent:"table {width}",c ontrolStyl e:"width:5 em",label: a.lang.com mon.width, title:a.la ng.common. cssLengthT ooltip,"de fault":a.f ilter.chec k("table{w idth}")?50 0>q.getSiz e("width") ?"100%":50 0:0,getVal ue:u,valid ate:CKEDIT OR.dialog. validate.c ssLength(a .lang.comm on.invalid CssLength. replace("% 1",a.lang. common.wid th)),onCha nge:functi on(){var a =this.getD ialog().ge tContentEl ement("adv anced","ad vStyles"); a&& | |||||
| 16 | a.updateSt yle("width ",this.get Value())}, setup:func tion(a){a= a.getStyle ("width"); this.setVa lue(a)},co mmit:m}]}, {type:"hbo x",widths: ["5em"],ch ildren:[{t ype:"text" ,id:"txtHe ight",requ iredConten t:"table{h eight}",co ntrolStyle :"width:5e m",label:a .lang.comm on.height, title:a.la ng.common. cssLengthT ooltip,"de fault":"", getValue:u ,validate: CKEDITOR.d ialog.vali date.cssLe ngth(a.lan g.common.i nvalidCssL ength.repl ace("%1",a .lang.comm on.height) ),onChange :function( ){var a=th is.getDial og().getCo ntentEleme nt("advanc ed", | |||||
| 17 | "advStyles ");a&&a.up dateStyle( "height",t his.getVal ue())},set up:functio n(a){(a=a. getStyle(" height"))& &this.setV alue(a)},c ommit:m}]} ,{type:"ht ml",html:" \x26nbsp;" },{type:"t ext",id:"t xtCellSpac e",require dContent:" table[cell spacing]", controlSty le:"width: 3em",label :a.lang.ta ble.cellSp ace,"defau lt":a.filt er.check(" table[cell spacing]") ?1:0,valid ate:CKEDIT OR.dialog. validate.n umber(a.la ng.table.i nvalidCell Spacing),s etup:funct ion(a){thi s.setValue (a.getAttr ibute("cel lSpacing") ||"")},com mit:functi on(a,d){th is.getValu e()? | |||||
| 18 | d.setAttri bute("cell Spacing",t his.getVal ue()):d.re moveAttrib ute("cellS pacing")}} ,{type:"te xt",id:"tx tCellPad", requiredCo ntent:"tab le[cellpad ding]",con trolStyle: "width:3em ",label:a. lang.table .cellPad," default":a .filter.ch eck("table [cellpaddi ng]")?1:0, validate:C KEDITOR.di alog.valid ate.number (a.lang.ta ble.invali dCellPaddi ng),setup: function(a ){this.set Value(a.ge tAttribute ("cellPadd ing")||"") },commit:f unction(a, d){this.ge tValue()?d .setAttrib ute("cellP adding",th is.getValu e()):d.rem oveAttribu te("cellPa dding")}}] }]}, | |||||
| 19 | {type:"htm l",align:" right",htm l:""},{typ e:"vbox",p adding:0,c hildren:[{ type:"text ",id:"txtC aption",re quiredCont ent:"capti on",label: a.lang.tab le.caption ,setup:fun ction(a){t his.enable ();a=a.get ElementsBy Tag("capti on");if(0< a.count()) {a=a.getIt em(0);var d=a.getFir st(CKEDITO R.dom.walk er.nodeTyp e(CKEDITOR .NODE_ELEM ENT));d&&! d.equals(a .getBogus( ))?(this.d isable(),t his.setVal ue(a.getTe xt())):(a= CKEDITOR.t ools.trim( a.getText( )),this.se tValue(a)) }},commit: function(e ,d){if(thi s.isEnable d()){var c =this.getV alue(), | |||||
| 20 | b=d.getEle mentsByTag ("caption" );if(c)0<b .count()?( b=b.getIte m(0),b.set Html("")): (b=new CKE DITOR.dom. element("c aption",a. document), d.getChild Count()?b. insertBefo re(d.getFi rst()):b.a ppendTo(d) ),b.append (new CKEDI TOR.dom.te xt(c,a.doc ument));el se if(0<b. count())fo r(c=b.coun t()-1;0<=c ;c--)b.get Item(c).re move()}}}, {type:"tex t",id:"txt Summary",b idi:!0,req uiredConte nt:"table[ summary]", label:a.la ng.table.s ummary,set up:functio n(a){this. setValue(a .getAttrib ute("summa ry")||"")} ,commit:fu nction(a,d ){this.get Value()? | |||||
| 21 | d.setAttri bute("summ ary",this. getValue() ):d.remove Attribute( "summary") }}]}]},p&& p.createAd vancedTab( a,null,"ta ble")]}}va r u=CKEDIT OR.tools.c ssLength,m =function( a){var f=t his.id;a.i nfo||(a.in fo={});a.i nfo[f]=thi s.getValue ()};CKEDIT OR.dialog. add("table ",function (a){return q(a,"tabl e")});CKED ITOR.dialo g.add("tab leProperti es",functi on(a){retu rn q(a,"ta blePropert ies")})})( ); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.