Produced by Araxis Merge on 2/1/2017 2:57:50 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\lineutils | plugin.js | Tue Dec 20 19:50:49 2016 UTC |
| 2 | Wed Feb 1 19:57:50 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 22 |
| 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 m(a,d){CK EDITOR.too ls.extend( this,{edit or:a,edita ble:a.edit able(),doc :a.documen t,win:a.wi ndow},d,!0 );this.inl ine=this.e ditable.is Inline();t his.inline ||(this.fr ame=this.w in.getFram e());this. target=thi s[this.inl ine?"edita ble":"doc" ]}function n(a,d){CK EDITOR.too ls.extend( this,d,{ed itor:a},!0 )}function p(a,d){va r b=a.edit able();CKE DITOR.tool s.extend(t his,{edito r:a,editab le:b,inlin e:b.isInli ne(),doc:a .document, win:a.wind ow,contain er:CKEDITO R.document .getBody() ,winTop:CK EDITOR.doc ument.getW indow()}, | |||||
| 6 | d,!0);this .hidden={} ;this.visi ble={};thi s.inline|| (this.fram e=this.win .getFrame( ));this.qu eryViewpor t();var c= CKEDITOR.t ools.bind( this.query Viewport,t his),e=CKE DITOR.tool s.bind(thi s.hideVisi ble,this), g=CKEDITOR .tools.bin d(this.rem oveAll,thi s);b.attac hListener( this.winTo p,"resize" ,c);b.atta chListener (this.winT op,"scroll ",c);b.att achListene r(this.win Top,"resiz e",e);b.at tachListen er(this.wi n,"scroll" ,e);b.atta chListener (this.inli ne?b:this. frame,"mou seout",fun ction(a){v ar b=a.dat a.$.client X;a=a.data .$.clientY ; | |||||
| 7 | this.query Viewport() ;(b<=this. rect.left| |b>=this.r ect.right| |a<=this.r ect.top||a >=this.rec t.bottom)& &this.hide Visible(); (0>=b||b>= this.winTo pPane.widt h||0>=a||a >=this.win TopPane.he ight)&&thi s.hideVisi ble()},thi s);b.attac hListener( a,"resize" ,c);b.atta chListener (a,"mode", g);a.on("d estroy",g) ;this.line Tpl=(new C KEDITOR.te mplate('\x 3cdiv data -cke-lineu tils-line\ x3d"1" cla ss\x3d"cke _reset_all " style\x3 d"{lineSty le}"\x3e\x 3cspan sty le\x3d"{ti pLeftStyle }"\x3e\x26 nbsp;\x3c/ span\x3e\x 3cspan sty le\x3d"{ti pRightStyl e}"\x3e\x2 6nbsp;\x3c /span\x3e\ x3c/div\x3 e')).outpu t({lineSty le:CKEDITO R.tools.wr iteCssText (CKEDITOR. tools.exte nd({}, | |||||
| 8 | t,this.lin eStyle,!0) ),tipLeftS tyle:CKEDI TOR.tools. writeCssTe xt(CKEDITO R.tools.ex tend({},q, {left:"0px ","border- left-color ":"red","b order-widt h":"6px 0 6px 6px"}, this.tipCs s,this.tip LeftStyle, !0)),tipRi ghtStyle:C KEDITOR.to ols.writeC ssText(CKE DITOR.tool s.extend({ },q,{right :"0px","bo rder-right -color":"r ed","borde r-width":" 6px 6px 6p x 0"},this .tipCss,th is.tipRigh tStyle,!0) )})}functi on l(a){va r d;if(d=a &&a.type== CKEDITOR.N ODE_ELEMEN T)d=!(r[a. getCompute dStyle("fl oat")]||r[ a.getAttri bute("alig n")]);retu rn d&& | |||||
| 9 | !u[a.getCo mputedStyl e("positio n")]}CKEDI TOR.plugin s.add("lin eutils");C KEDITOR.LI NEUTILS_BE FORE=1;CKE DITOR.LINE UTILS_AFTE R=2;CKEDIT OR.LINEUTI LS_INSIDE= 4;m.protot ype={start :function( a){var d=t his,b=this .editor,c= this.doc,e ,g,f,h,k=C KEDITOR.to ols.events Buffer(50, function() {b.readOnl y||"wysiwy g"!=b.mode ||(d.relat ions={},(g =c.$.eleme ntFromPoin t(f,h))&&g .nodeType& &(e=new CK EDITOR.dom .element(g ),d.traver seSearch(e ),isNaN(f+ h)||d.pixe lSearch(e, f,h),a&&a( d.relation s,f,h)))}) ;this.list ener=this. editable.a ttachListe ner(this.t arget, | |||||
| 10 | "mousemove ",function (a){f=a.da ta.$.clien tX;h=a.dat a.$.client Y;k.input( )});this.e ditable.at tachListen er(this.in line?this. editable:t his.frame, "mouseout" ,function( ){k.reset( )})},stop: function() {this.list ener&&this .listener. removeList ener()},ge tRange:fun ction(){va r a={};a[C KEDITOR.LI NEUTILS_BE FORE]=CKED ITOR.POSIT ION_BEFORE _START;a[C KEDITOR.LI NEUTILS_AF TER]=CKEDI TOR.POSITI ON_AFTER_E ND;a[CKEDI TOR.LINEUT ILS_INSIDE ]=CKEDITOR .POSITION_ AFTER_STAR T;return f unction(d) {var b=thi s.editor.c reateRange ();b.moveT oPosition( this.relat ions[d.uid ].element, | |||||
| 11 | a[d.type]) ;return b} }(),store: function() {function a(a,b,c){v ar e=a.get UniqueId() ;e in c?c[ e].type|=b :c[e]={ele ment:a,typ e:b}}retur n function (d,b){var c;b&CKEDIT OR.LINEUTI LS_AFTER&& l(c=d.getN ext())&&c. isVisible( )&&(a(c,CK EDITOR.LIN EUTILS_BEF ORE,this.r elations), b^=CKEDITO R.LINEUTIL S_AFTER);b &CKEDITOR. LINEUTILS_ INSIDE&&l( c=d.getFir st())&&c.i sVisible() &&(a(c,CKE DITOR.LINE UTILS_BEFO RE,this.re lations),b ^=CKEDITOR .LINEUTILS _INSIDE);a (d,b,this. relations) }}(),trave rseSearch: function(a ){var d,b, c;do if(c= a.$["data- cke-expand o"], | |||||
| 12 | !(c&&c in this.relat ions)){if( a.equals(t his.editab le))break; if(l(a))fo r(d in thi s.lookups) (b=this.lo okups[d](a ))&&this.s tore(a,b)} while((!a| |a.type!=C KEDITOR.NO DE_ELEMENT ||"true"!= a.getAttri bute("cont enteditabl e"))&&(a=a .getParent ()))},pixe lSearch:fu nction(){f unction a( a,c,e,g,f) {for(var h =0,k;f(e); ){e+=g;if( 25==++h)br eak;if(k=t his.doc.$. elementFro mPoint(c,e ))if(k==a) h=0;else i f(d(a,k)&& (h=0,l(k=n ew CKEDITO R.dom.elem ent(k))))r eturn k}}v ar d=CKEDI TOR.env.ie ||CKEDITOR .env.webki t?function (a,c){retu rn a.conta ins(c)}: | |||||
| 13 | function(a ,c){return !!(a.compa reDocument Position(c )&16)};ret urn functi on(b,c,d){ var g=this .win.getVi ewPaneSize ().height, f=a.call(t his,b.$,c, d,-1,funct ion(a){ret urn 0<a}); c=a.call(t his,b.$,c, d,1,functi on(a){retu rn a<g});i f(f)for(th is.travers eSearch(f) ;!f.getPar ent().equa ls(b);)f=f .getParent ();if(c)fo r(this.tra verseSearc h(c);!c.ge tParent(). equals(b); )c=c.getPa rent();for (;f||c;){f &&(f=f.get Next(l));i f(!f||f.eq uals(c))br eak;this.t raverseSea rch(f);c&& (c=c.getPr evious(l)) ;if(!c||c. equals(f)) break;this .traverseS earch(c)}} }(), | |||||
| 14 | greedySear ch:functio n(){this.r elations={ };for(var a=this.edi table.getE lementsByT ag("*"),d= 0,b,c,e;b= a.getItem( d++);)if(! b.equals(t his.editab le)&&b.typ e==CKEDITO R.NODE_ELE MENT&&(b.h asAttribut e("content editable") ||!b.isRea dOnly())&& l(b)&&b.is Visible()) for(e in t his.lookup s)(c=this. lookups[e] (b))&&this .store(b,c );return t his.relati ons}};n.pr ototype={l ocate:func tion(){fun ction a(a, b){var c=a .element[b ===CKEDITO R.LINEUTIL S_BEFORE?" getPreviou s":"getNex t"]();retu rn c&&l(c) ?(a.siblin gRect=c.ge tClientRec t(), | |||||
| 15 | b==CKEDITO R.LINEUTIL S_BEFORE?( a.siblingR ect.bottom +a.element Rect.top)/ 2:(a.eleme ntRect.bot tom+a.sibl ingRect.to p)/2):b==C KEDITOR.LI NEUTILS_BE FORE?a.ele mentRect.t op:a.eleme ntRect.bot tom}return function( d){var b;t his.locati ons={};for (var c in d)b=d[c],b .elementRe ct=b.eleme nt.getClie ntRect(),b .type&CKED ITOR.LINEU TILS_BEFOR E&&this.st ore(c,CKED ITOR.LINEU TILS_BEFOR E,a(b,CKED ITOR.LINEU TILS_BEFOR E)),b.type &CKEDITOR. LINEUTILS_ AFTER&&thi s.store(c, CKEDITOR.L INEUTILS_A FTER,a(b,C KEDITOR.LI NEUTILS_AF TER)),b.ty pe& | |||||
| 16 | CKEDITOR.L INEUTILS_I NSIDE&&thi s.store(c, CKEDITOR.L INEUTILS_I NSIDE,(b.e lementRect .top+b.ele mentRect.b ottom)/2); return thi s.location s}}(),sort :function( ){var a,d, b,c;return function( e,g){a=thi s.location s;d=[];for (var f in a)for(var h in a[f]) if(b=Math. abs(e-a[f] [h]),d.len gth){for(c =0;c<d.len gth;c++)if (b<d[c].di st){d.spli ce(c,0,{ui d:+f,type: h,dist:b}) ;break}c== d.length&& d.push({ui d:+f,type: h,dist:b}) }else d.pu sh({uid:+f ,type:h,di st:b});ret urn"undefi ned"!=type of g?d.sli ce(0,g):d} }(),store: function(a , | |||||
| 17 | d,b){this. locations[ a]||(this. locations[ a]={});thi s.location s[a][d]=b} };var q={d isplay:"bl ock",width :"0px",hei ght:"0px", "border-co lor":"tran sparent"," border-sty le":"solid ",position :"absolute ",top:"-6p x"},t={hei ght:"0px", "border-to p":"1px da shed red", position:" absolute", "z-index": 9999};p.pr ototype={r emoveAll:f unction(){ for(var a in this.hi dden)this. hidden[a]. remove(),d elete this .hidden[a] ;for(a in this.visib le)this.vi sible[a].r emove(),de lete this. visible[a] },hideLine :function( a){var d=a .getUnique Id(); | |||||
| 18 | a.hide();t his.hidden [d]=a;dele te this.vi sible[d]}, showLine:f unction(a) {var d=a.g etUniqueId ();a.show( );this.vis ible[d]=a; delete thi s.hidden[d ]},hideVis ible:funct ion(){for( var a in t his.visibl e)this.hid eLine(this .visible[a ])},placeL ine:functi on(a,d){va r b,c,e;if (b=this.ge tStyle(a.u id,a.type) ){for(e in this.visi ble)if(thi s.visible[ e].getCust omData("ha sh")!==thi s.hash){c= this.visib le[e];brea k}if(!c)fo r(e in thi s.hidden)i f(this.hid den[e].get CustomData ("hash")!= =this.hash ){this.sho wLine(c=th is.hidden[ e]); | |||||
| 19 | break}c||t his.showLi ne(c=this. addLine()) ;c.setCust omData("ha sh",this.h ash);this. visible[c. getUniqueI d()]=c;c.s etStyles(b );d&&d(c)} },getStyle :function( a,d){var b =this.rela tions[a],c =this.loca tions[a][d ],e={};e.w idth=b.sib lingRect?M ath.max(b. siblingRec t.width,b. elementRec t.width):b .elementRe ct.width;e .top=this. inline?c+t his.winTop Scroll.y-t his.rect.r elativeY:t his.rect.t op+this.wi nTopScroll .y+c;if(e. top-this.w inTopScrol l.y<this.r ect.top||e .top-this. winTopScro ll.y>this. rect.botto m)return!1 ;this.inli ne? | |||||
| 20 | e.left=b.e lementRect .left-this .rect.rela tiveX:(0<b .elementRe ct.left?e. left=this. rect.left+ b.elementR ect.left:( e.width+=b .elementRe ct.left,e. left=this. rect.left) ,0<(b=e.le ft+e.width -(this.rec t.left+thi s.winPane. width))&&( e.width-=b ));e.left+ =this.winT opScroll.x ;for(var g in e)e[g] =CKEDITOR. tools.cssL ength(e[g] );return e },addLine: function() {var a=CKE DITOR.dom. element.cr eateFromHt ml(this.li neTpl);a.a ppendTo(th is.contain er);return a},prepar e:function (a,d){this .relations =a;this.lo cations=d; this.hash= Math.rando m()}, | |||||
| 21 | cleanup:fu nction(){v ar a,d;for (d in this .visible)a =this.visi ble[d],a.g etCustomDa ta("hash") !==this.ha sh&&this.h ideLine(a) },queryVie wport:func tion(){thi s.winPane= this.win.g etViewPane Size();thi s.winTopSc roll=this. winTop.get ScrollPosi tion();thi s.winTopPa ne=this.wi nTop.getVi ewPaneSize ();this.re ct=this.ge tClientRec t(this.inl ine?this.e ditable:th is.frame)} ,getClient Rect:funct ion(a){a=a .getClient Rect();var d=this.co ntainer.ge tDocumentP osition(), b=this.con tainer.get ComputedSt yle("posit ion");a.re lativeX=a. relativeY= | |||||
| 22 | 0;"static" !=b&&(a.re lativeY=d. y,a.relati veX=d.x,a. top-=a.rel ativeY,a.b ottom-=a.r elativeY,a .left-=a.r elativeX,a .right-=a. relativeX) ;return a} };var r={l eft:1,righ t:1,center :1},u={abs olute:1,fi xed:1};CKE DITOR.plug ins.lineut ils={finde r:m,locato r:n,liner: p}})(); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.