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\image\dialogs | image.js | Tue Dec 20 19:50:48 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 | 44 |
| 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( ){var v=fu nction(d,l ){function v(){var a =arguments ,b=this.ge tContentEl ement("adv anced","tx tdlgGenSty le");b&&b. commit.app ly(b,a);th is.foreach (function( b){b.commi t&&"txtdlg GenStyle"! =b.id&&b.c ommit.appl y(b,a)})}f unction k( a){if(!w){ w=1;var b= this.getDi alog(),c=b .imageElem ent;if(c){ this.commi t(1,c);a=[ ].concat(a );for(var d=a.length ,f,g=0;g<d ;g++)(f=b. getContent Element.ap ply(b,a[g] .split(":" )))&&f.set up(1,c)}w= 0}}var m=/ ^\s*(\d+)( (px)|\%)?\ s*$/i,z=/( ^\s*(\d+)( (px)|\%)?\ s*$)|^$/i, r=/^\d+px$ /, | |||||
| 6 | A=function (){var a=t his.getVal ue(),b=thi s.getDialo g(),c=a.ma tch(m);c&& ("%"==c[2] &&n(b,!1), a=c[1]);b. lockRatio& &(c=b.orig inalElemen t,"true"== c.getCusto mData("isR eady")&&(" txtHeight" ==this.id? (a&&"0"!=a &&(a=Math. round(a/c. $.height*c .$.width)) ,isNaN(a)| |b.setValu eOf("info" ,"txtWidth ",a)):(a&& "0"!=a&&(a =Math.roun d(a/c.$.wi dth*c.$.he ight)),isN aN(a)||b.s etValueOf( "info","tx tHeight",a ))));e(b)} ,e=functio n(a){if(!a .originalE lement||!a .preview)r eturn 1;a. commitCont ent(4,a.pr eview);ret urn 0},w,n =function( a, | |||||
| 7 | b){if(!a.g etContentE lement("in fo","ratio Lock"))ret urn null;v ar c=a.ori ginalEleme nt;if(!c)r eturn null ;if("check "==b){if(! a.userlock Ratio&&"tr ue"==c.get CustomData ("isReady" )){var d=a .getValueO f("info"," txtWidth") ,f=a.getVa lueOf("inf o","txtHei ght"),c=1E 3*c.$.widt h/c.$.heig ht,g=1E3*d /f;a.lockR atio=!1;d| |f?isNaN(c )||isNaN(g )||Math.ro und(c)!=Ma th.round(g )||(a.lock Ratio=!0): a.lockRati o=!0}}else void 0!== b?a.lockRa tio=b:(a.u serlockRat io=1,a.loc kRatio=!a. lockRatio) ;d=CKEDITO R.document .getById(t );a.lockRa tio? | |||||
| 8 | d.removeCl ass("cke_b tn_unlocke d"):d.addC lass("cke_ btn_unlock ed");d.set Attribute( "aria-chec ked",a.loc kRatio);CK EDITOR.env .hc&&d.get Child(0).s etHtml(a.l ockRatio?C KEDITOR.en v.ie?"■":" ▣":CKEDITO R.env.ie?" □":"▢");re turn a.loc kRatio},B= function(a ,b){var c= a.original Element;if ("true"==c .getCustom Data("isRe ady")){var d=a.getCo ntentEleme nt("info", "txtWidth" ),f=a.getC ontentElem ent("info" ,"txtHeigh t"),g;b?c= g=0:(g=c.$ .width,c=c .$.height) ;d&&d.setV alue(g);f& &f.setValu e(c)}e(a)} ,C=functio n(a,b){fun ction c(a, b){var c= | |||||
| 9 | a.match(m) ;return c? ("%"==c[2] &&(c[1]+=" %",n(d,!1) ),c[1]):b} if(1==a){v ar d=this. getDialog( ),f="",g=" txtWidth"= =this.id?" width":"he ight",e=b. getAttribu te(g);e&&( f=c(e,f)); f=c(b.getS tyle(g),f) ;this.setV alue(f)}}, x,u=functi on(){var a =this.orig inalElemen t,b=CKEDIT OR.documen t.getById( p);a.setCu stomData(" isReady"," true");a.r emoveListe ner("load" ,u);a.remo veListener ("error",h );a.remove Listener(" abort",h); b&&b.setSt yle("displ ay","none" );this.don tResetSize ||B(this,! 1===d.conf ig.image_p refillDime nsions);th is.firstLo ad&& | |||||
| 10 | CKEDITOR.t ools.setTi meout(func tion(){n(t his,"check ")},0,this );this.don tResetSize =this.firs tLoad=!1;e (this)},h= function() {var a=thi s.original Element,b= CKEDITOR.d ocument.ge tById(p);a .removeLis tener("loa d",u);a.re moveListen er("error" ,h);a.remo veListener ("abort",h );a=CKEDIT OR.getUrl( CKEDITOR.p lugins.get ("image"). path+"imag es/noimage .png");thi s.preview& &this.prev iew.setAtt ribute("sr c",a);b&&b .setStyle( "display", "none");n( this,!1)}, q=function (a){return CKEDITOR. tools.getN extId()+"_ "+a},t=q(" btnLockSiz es"), | |||||
| 11 | y=q("btnRe setSize"), p=q("Image PreviewLoa der"),E=q( "previewLi nk"),D=q(" previewIma ge");retur n{title:d. lang.image ["image"== l?"title": "titleButt on"],minWi dth:420,mi nHeight:36 0,onShow:f unction(){ this.linkE ditMode=th is.imageEd itMode=thi s.linkElem ent=this.i mageElemen t=!1;this. lockRatio= !0;this.us erlockRati o=0;this.d ontResetSi ze=!1;this .firstLoad =!0;this.a ddLink=!1; var a=this .getParent Editor(),b =a.getSele ction(),c= (b=b&&b.ge tSelectedE lement())& &a.element Path(b).co ntains("a" ,1),d=CKED ITOR.docum ent.getByI d(p); | |||||
| 12 | d&&d.setSt yle("displ ay","none" );x=new CK EDITOR.dom .element(" img",a.doc ument);thi s.preview= CKEDITOR.d ocument.ge tById(D);t his.origin alElement= a.document .createEle ment("img" );this.ori ginalEleme nt.setAttr ibute("alt ","");this .originalE lement.set CustomData ("isReady" ,"false"); c&&(this.l inkElement =c,this.ad dLink=this .linkEditM ode=!0,a=c .getChildr en(),1==a. count()&&( d=a.getIte m(0),d.typ e==CKEDITO R.NODE_ELE MENT&&(d.i s("img")|| d.is("inpu t"))&&(thi s.imageEle ment=a.get Item(0),th is.imageEl ement.is(" img")?this .imageEdit Mode= | |||||
| 13 | "img":this .imageElem ent.is("in put")&&(th is.imageEd itMode="in put"))),"i mage"==l&& this.setup Content(2, c));if(thi s.customIm ageElement )this.imag eEditMode= "img",this .imageElem ent=this.c ustomImage Element,de lete this. customImag eElement;e lse if(b&& "img"==b.g etName()&& !b.data("c ke-realele ment")||b& &"input"== b.getName( )&&"image" ==b.getAtt ribute("ty pe"))this. imageEditM ode=b.getN ame(),this .imageElem ent=b;this .imageEdit Mode&&(thi s.cleanIma geElement= this.image Element,th is.imageEl ement=this .cleanImag eElement.c lone(!0, | |||||
| 14 | !0),this.s etupConten t(1,this.i mageElemen t));n(this ,!0);CKEDI TOR.tools. trim(this. getValueOf ("info","t xtUrl"))|| (this.prev iew.remove Attribute( "src"),thi s.preview. setStyle(" display"," none"))},o nOk:functi on(){if(th is.imageEd itMode){va r a=this.i mageEditMo de;"image" ==l&&"inpu t"==a&&con firm(d.lan g.image.bu tton2Img)? (this.imag eElement=d .document. createElem ent("img") ,this.imag eElement.s etAttribut e("alt","" ),d.insert Element(th is.imageEl ement)):"i mage"!=l&& "img"==a&& confirm(d. lang.image .img2Butto n)?(this.i mageElemen t= | |||||
| 15 | d.document .createEle ment("inpu t"),this.i mageElemen t.setAttri butes({typ e:"image", alt:""}),d .insertEle ment(this. imageEleme nt)):(this .imageElem ent=this.c leanImageE lement,del ete this.c leanImageE lement)}el se"image"= =l?this.im ageElement =d.documen t.createEl ement("img "):(this.i mageElemen t=d.docume nt.createE lement("in put"),this .imageElem ent.setAtt ribute("ty pe","image ")),this.i mageElemen t.setAttri bute("alt" ,"");this. linkEditMo de||(this. linkElemen t=d.docume nt.createE lement("a" ));this.co mmitConten t(1,this.i mageElemen t); | |||||
| 16 | this.commi tContent(2 ,this.link Element);t his.imageE lement.get Attribute( "style")|| this.image Element.re moveAttrib ute("style ");this.im ageEditMod e?!this.li nkEditMode &&this.add Link?(d.in sertElemen t(this.lin kElement), this.image Element.ap pendTo(thi s.linkElem ent)):this .linkEditM ode&&!this .addLink&& (d.getSele ction().se lectElemen t(this.lin kElement), d.insertEl ement(this .imageElem ent)):this .addLink?t his.linkEd itMode?thi s.linkElem ent.equals (d.getSele ction().ge tSelectedE lement())? (this.link Element.se tHtml(""), this.linkE lement.app end(this.i mageElemen t, | |||||
| 17 | !1)):d.ins ertElement (this.imag eElement): (d.insertE lement(thi s.linkElem ent),this. linkElemen t.append(t his.imageE lement,!1) ):d.insert Element(th is.imageEl ement)},on Load:funct ion(){"ima ge"!=l&&th is.hidePag e("Link"); var a=this ._.element .getDocume nt();this. getContent Element("i nfo","rati oLock")&&( this.addFo cusable(a. getById(y) ,5),this.a ddFocusabl e(a.getByI d(t),5));t his.commit Content=v} ,onHide:fu nction(){t his.previe w&&this.co mmitConten t(8,this.p review);th is.origina lElement&& (this.orig inalElemen t.removeLi stener("lo ad", | |||||
| 18 | u),this.or iginalElem ent.remove Listener(" error",h), this.origi nalElement .removeLis tener("abo rt",h),thi s.original Element.re move(),thi s.original Element=!1 );delete t his.imageE lement},co ntents:[{i d:"info",l abel:d.lan g.image.in foTab,acce ssKey:"I", elements:[ {type:"vbo x",padding :0,childre n:[{type:" hbox",widt hs:["280px ","110px"] ,align:"ri ght",child ren:[{id:" txtUrl",ty pe:"text", label:d.la ng.common. url,requir ed:!0,onCh ange:funct ion(){var a=this.get Dialog(),b =this.getV alue();if( 0<b.length ){var a=th is.getDial og(), | |||||
| 19 | c=a.origin alElement; a.preview& &a.preview .removeSty le("displa y");c.setC ustomData( "isReady", "false");v ar d=CKEDI TOR.docume nt.getById (p);d&&d.s etStyle("d isplay","" );c.on("lo ad",u,a);c .on("error ",h,a);c.o n("abort", h,a);c.set Attribute( "src",b);a .preview&& (x.setAttr ibute("src ",b),a.pre view.setAt tribute("s rc",x.$.sr c),e(a))}e lse a.prev iew&&(a.pr eview.remo veAttribut e("src"),a .preview.s etStyle("d isplay","n one"))},se tup:functi on(a,b){if (1==a){var c=b.data( "cke-saved -src")||b. getAttribu te("src"); this.getDi alog().don tResetSize = | |||||
| 20 | !0;this.se tValue(c); this.setIn itValue()} },commit:f unction(a, b){1==a&&( this.getVa lue()||thi s.isChange d())?(b.da ta("cke-sa ved-src",t his.getVal ue()),b.se tAttribute ("src",thi s.getValue ())):8==a& &(b.setAtt ribute("sr c",""),b.r emoveAttri bute("src" ))},valida te:CKEDITO R.dialog.v alidate.no tEmpty(d.l ang.image. urlMissing )},{type:" button",id :"browse", style:"dis play:inlin e-block;ma rgin-top:1 4px;",alig n:"center" ,label:d.l ang.common .browseSer ver,hidden :!0,filebr owser:"inf o:txtUrl"} ]}]},{id:" txtAlt",ty pe:"text", label:d.la ng.image.a lt, | |||||
| 21 | accessKey: "T","defau lt":"",onC hange:func tion(){e(t his.getDia log())},se tup:functi on(a,b){1= =a&&this.s etValue(b. getAttribu te("alt")) },commit:f unction(a, b){1==a?(t his.getVal ue()||this .isChanged ())&&b.set Attribute( "alt",this .getValue( )):4==a?b. setAttribu te("alt",t his.getVal ue()):8==a &&b.remove Attribute( "alt")}},{ type:"hbox ",children :[{id:"bas ic",type:" vbox",chil dren:[{typ e:"hbox",r equiredCon tent:"img{ width,heig ht}",width s:["50%"," 50%"],chil dren:[{typ e:"vbox",p adding:1,c hildren:[{ type:"text ",width:"4 5px", | |||||
| 22 | id:"txtWid th",label: d.lang.com mon.width, onKeyUp:A, onChange:f unction(){ k.call(thi s,"advance d:txtdlgGe nStyle")}, validate:f unction(){ var a=this .getValue( ).match(z) ;(a=!(!a|| 0===parseI nt(a[1],10 )))||alert (d.lang.co mmon.inval idWidth);r eturn a},s etup:C,com mit:functi on(a,b){va r c=this.g etValue(); 1==a?(c&&d .activeFil ter.check( "img{width ,height}") ?b.setStyl e("width", CKEDITOR.t ools.cssLe ngth(c)):b .removeSty le("width" ),b.remove Attribute( "width")): 4==a?c.mat ch(m)?b.se tStyle("wi dth",CKEDI TOR.tools. cssLength( c)): | |||||
| 23 | (c=this.ge tDialog(). originalEl ement,"tru e"==c.getC ustomData( "isReady") &&b.setSty le("width" ,c.$.width +"px")):8= =a&&(b.rem oveAttribu te("width" ),b.remove Style("wid th"))}},{t ype:"text" ,id:"txtHe ight",widt h:"45px",l abel:d.lan g.common.h eight,onKe yUp:A,onCh ange:funct ion(){k.ca ll(this,"a dvanced:tx tdlgGenSty le")},vali date:funct ion(){var a=this.get Value().ma tch(z);(a= !(!a||0=== parseInt(a [1],10)))| |alert(d.l ang.common .invalidHe ight);retu rn a},setu p:C,commit :function( a,b){var c =this.getV alue();1== a?(c&&d.ac tiveFilter .check("im g{width,he ight}")? | |||||
| 24 | b.setStyle ("height", CKEDITOR.t ools.cssLe ngth(c)):b .removeSty le("height "),b.remov eAttribute ("height") ):4==a?c.m atch(m)?b. setStyle(" height",CK EDITOR.too ls.cssLeng th(c)):(c= this.getDi alog().ori ginalEleme nt,"true"= =c.getCust omData("is Ready")&&b .setStyle( "height",c .$.height+ "px")):8== a&&(b.remo veAttribut e("height" ),b.remove Style("hei ght"))}}]} ,{id:"rati oLock",typ e:"html",s tyle:"marg in-top:30p x;width:40 px;height: 40px;",onL oad:functi on(){var a =CKEDITOR. document.g etById(y), b=CKEDITOR .document. getById(t) ; | |||||
| 25 | a&&(a.on(" click",fun ction(a){B (this);a.d ata&&a.dat a.preventD efault()}, this.getDi alog()),a. on("mouseo ver",funct ion(){this .addClass( "cke_btn_o ver")},a), a.on("mous eout",func tion(){thi s.removeCl ass("cke_b tn_over")} ,a));b&&(b .on("click ",function (a){n(this );var b=th is.origina lElement,d =this.getV alueOf("in fo","txtWi dth");"tru e"==b.getC ustomData( "isReady") &&d&&(b=b. $.height/b .$.width*d ,isNaN(b)| |(this.set ValueOf("i nfo","txtH eight",Mat h.round(b) ),e(this)) );a.data&& a.data.pre ventDefaul t()},this. getDialog( )), | |||||
| 26 | b.on("mous eover",fun ction(){th is.addClas s("cke_btn _over")},b ),b.on("mo useout",fu nction(){t his.remove Class("cke _btn_over" )},b))},ht ml:'\x3cdi v\x3e\x3ca href\x3d" javascript :void(0)" tabindex\x 3d"-1" tit le\x3d"'+d .lang.imag e.lockRati o+'" class \x3d"cke_b tn_locked" id\x3d"'+ t+'" role\ x3d"checkb ox"\x3e\x3 cspan clas s\x3d"cke_ icon"\x3e\ x3c/span\x 3e\x3cspan class\x3d "cke_label "\x3e'+d.l ang.image. lockRatio+ '\x3c/span \x3e\x3c/a \x3e\x3ca href\x3d"j avascript: void(0)" t abindex\x3 d"-1" titl e\x3d"'+d. lang.image .resetSize + | |||||
| 27 | '" class\x 3d"cke_btn _reset" id \x3d"'+y+' " role\x3d "button"\x 3e\x3cspan class\x3d "cke_label "\x3e'+d.l ang.image. resetSize+ "\x3c/span \x3e\x3c/a \x3e\x3c/d iv\x3e"}]} ,{type:"vb ox",paddin g:1,childr en:[{type: "text",id: "txtBorder ",required Content:"i mg{border- width}",wi dth:"60px" ,label:d.l ang.image. border,"de fault":"", onKeyUp:fu nction(){e (this.getD ialog())}, onChange:f unction(){ k.call(thi s,"advance d:txtdlgGe nStyle")}, validate:C KEDITOR.di alog.valid ate.intege r(d.lang.i mage.valid ateBorder) ,setup:fun ction(a,b) {if(1== | |||||
| 28 | a){var c;c =(c=(c=b.g etStyle("b order-widt h"))&&c.ma tch(/^(\d+ px)(?: \1 \1 \1)?$/) )&&parseIn t(c[1],10) ;isNaN(par seInt(c,10 ))&&(c=b.g etAttribut e("border" ));this.se tValue(c)} },commit:f unction(a, b){var c=p arseInt(th is.getValu e(),10);1= =a||4==a?( isNaN(c)?! c&&this.is Changed()& &b.removeS tyle("bord er"):(b.se tStyle("bo rder-width ",CKEDITOR .tools.css Length(c)) ,b.setStyl e("border- style","so lid")),1== a&&b.remov eAttribute ("border") ):8==a&&(b .removeAtt ribute("bo rder"),b.r emoveStyle ("border-w idth"),b.r emoveStyle ("border-s tyle"), | |||||
| 29 | b.removeSt yle("borde r-color")) }},{type:" text",id:" txtHSpace" ,requiredC ontent:"im g{margin-l eft,margin -right}",w idth:"60px ",label:d. lang.image .hSpace,"d efault":"" ,onKeyUp:f unction(){ e(this.get Dialog())} ,onChange: function() {k.call(th is,"advanc ed:txtdlgG enStyle")} ,validate: CKEDITOR.d ialog.vali date.integ er(d.lang. image.vali dateHSpace ),setup:fu nction(a,b ){if(1==a) {var c,d;c =b.getStyl e("margin- left");d=b .getStyle( "margin-ri ght");c=c& &c.match(r );d=d&&d.m atch(r);c= parseInt(c ,10);d=par seInt(d,10 );c=c==d&& c; | |||||
| 30 | isNaN(pars eInt(c,10) )&&(c=b.ge tAttribute ("hspace") );this.set Value(c)}} ,commit:fu nction(a,b ){var c=pa rseInt(thi s.getValue (),10);1== a||4==a?(i sNaN(c)?!c &&this.isC hanged()&& (b.removeS tyle("marg in-left"), b.removeSt yle("margi n-right")) :(b.setSty le("margin -left",CKE DITOR.tool s.cssLengt h(c)),b.se tStyle("ma rgin-right ",CKEDITOR .tools.css Length(c)) ),1==a&&b. removeAttr ibute("hsp ace")):8== a&&(b.remo veAttribut e("hspace" ),b.remove Style("mar gin-left") ,b.removeS tyle("marg in-right") )}},{type: "text",id: "txtVSpace ", | |||||
| 31 | requiredCo ntent:"img {margin-to p,margin-b ottom}",wi dth:"60px" ,label:d.l ang.image. vSpace,"de fault":"", onKeyUp:fu nction(){e (this.getD ialog())}, onChange:f unction(){ k.call(thi s,"advance d:txtdlgGe nStyle")}, validate:C KEDITOR.di alog.valid ate.intege r(d.lang.i mage.valid ateVSpace) ,setup:fun ction(a,b) {if(1==a){ var c,d;c= b.getStyle ("margin-t op");d=b.g etStyle("m argin-bott om");c=c&& c.match(r) ;d=d&&d.ma tch(r);c=p arseInt(c, 10);d=pars eInt(d,10) ;c=c==d&&c ;isNaN(par seInt(c,10 ))&&(c=b.g etAttribut e("vspace" ));this.se tValue(c)} }, | |||||
| 32 | commit:fun ction(a,b) {var c=par seInt(this .getValue( ),10);1==a ||4==a?(is NaN(c)?!c& &this.isCh anged()&&( b.removeSt yle("margi n-top"),b. removeStyl e("margin- bottom")): (b.setStyl e("margin- top",CKEDI TOR.tools. cssLength( c)),b.setS tyle("marg in-bottom" ,CKEDITOR. tools.cssL ength(c))) ,1==a&&b.r emoveAttri bute("vspa ce")):8==a &&(b.remov eAttribute ("vspace") ,b.removeS tyle("marg in-top"),b .removeSty le("margin -bottom")) }},{id:"cm bAlign",re quiredCont ent:"img{f loat}",typ e:"select" ,widths:[" 35%","65%" ],style:"w idth:90px" , | |||||
| 33 | label:d.la ng.common. align,"def ault":"",i tems:[[d.l ang.common .notSet,"" ],[d.lang. common.ali gnLeft,"le ft"],[d.la ng.common. alignRight ,"right"]] ,onChange: function() {e(this.ge tDialog()) ;k.call(th is,"advanc ed:txtdlgG enStyle")} ,setup:fun ction(a,b) {if(1==a){ var c=b.ge tStyle("fl oat");swit ch(c){case "inherit" :case "non e":c=""}!c &&(c=(b.ge tAttribute ("align")| |"").toLow erCase()); this.setVa lue(c)}},c ommit:func tion(a,b){ var c=this .getValue( );if(1==a| |4==a){if( c?b.setSty le("float" ,c):b.remo veStyle("f loat"),1== a)switch(c = | |||||
| 34 | (b.getAttr ibute("ali gn")||""). toLowerCas e(),c){cas e "left":c ase "right ":b.remove Attribute( "align")}} else 8==a& &b.removeS tyle("floa t")}}]}]}, {type:"vbo x",height: "250px",ch ildren:[{t ype:"html" ,id:"htmlP review",st yle:"width :95%;",htm l:"\x3cdiv \x3e"+CKED ITOR.tools .htmlEncod e(d.lang.c ommon.prev iew)+'\x3c br\x3e\x3c div id\x3d "'+p+'" cl ass\x3d"Im agePreview Loader" st yle\x3d"di splay:none "\x3e\x3cd iv class\x 3d"loading "\x3e\x26n bsp;\x3c/d iv\x3e\x3c /div\x3e\x 3cdiv clas s\x3d"Imag ePreviewBo x"\x3e\x3c table\x3e\ x3ctr\x3e\ x3ctd\x3e\ x3ca href\ x3d"javasc ript:void( 0)" target \x3d"_blan k" onclick \x3d"retur n false;" id\x3d"'+ | |||||
| 35 | E+'"\x3e\x 3cimg id\x 3d"'+D+'" alt\x3d"" /\x3e\x3c/ a\x3e'+(d. config.ima ge_preview Text||"Lor em ipsum d olor sit a met, conse ctetuer ad ipiscing e lit. Maece nas feugia t consequa t diam. Ma ecenas met us. Vivamu s diam pur us, cursus a, commod o non, fac ilisis vit ae, nulla. Aenean di ctum lacin ia tortor. Nunc iacu lis, nibh non iaculi s aliquam, orci feli s euismod neque, sed ornare ma ssa mauris sed velit . Nulla pr etium mi e t risus. F usce mi pe de, tempor id, cursu s ac, ulla mcorper ne c, enim. S ed tortor. Curabitur molestie. Duis veli t augue, c ondimentum at, ultri ces a, luc tus ut, or ci. Donec pellentesq ue egestas eros. Int eger cursu s, augue i n cursus f aucibus, e ros pede b ibendum se m, in temp us tellus justo quis ligula. E tiam eget tortor. Ve stibulum r utrum, est ut placer at element um, lectus nisl aliq uam velit, tempor al iquam eros nunc nonu mmy metus. In eros m etus, grav ida a, gra vida sed, lobortis i d, turpis. Ut ultric es, ipsum at venenat is fringil la, sem nu lla lacini a tellus, eget aliqu et turpis mauris non enim. Nam turpis. S uspendisse lacinia. Curabitur ac tortor ut ipsum e gestas ele mentum. Nu nc imperdi et gravida mauris.") + | |||||
| 36 | "\x3c/td\x 3e\x3c/tr\ x3e\x3c/ta ble\x3e\x3 c/div\x3e\ x3c/div\x3 e"}]}]}]}, {id:"Link" ,requiredC ontent:"a[ href]",lab el:d.lang. image.link Tab,paddin g:0,elemen ts:[{id:"t xtUrl",typ e:"text",l abel:d.lan g.common.u rl,style:" width: 100 %","defaul t":"",setu p:function (a,b){if(2 ==a){var c =b.data("c ke-saved-h ref");c||( c=b.getAtt ribute("hr ef"));this .setValue( c)}},commi t:function (a,b){if(2 ==a&&(this .getValue( )||this.is Changed()) ){var c=th is.getValu e();b.data ("cke-save d-href",c) ;b.setAttr ibute("hre f",c);this .getValue( )|| | |||||
| 37 | !d.config. image_remo veLinkByEm ptyURL?thi s.getDialo g().addLin k=!0:this. getDialog( ).addLink= !1}}},{typ e:"button" ,id:"brows e",filebro wser:{acti on:"Browse ",target:" Link:txtUr l",url:d.c onfig.file browserIma geBrowseLi nkUrl},sty le:"float: right",hid den:!0,lab el:d.lang. common.bro wseServer} ,{id:"cmbT arget",typ e:"select" ,requiredC ontent:"a[ target]",l abel:d.lan g.common.t arget,"def ault":"",i tems:[[d.l ang.common .notSet,"" ],[d.lang. common.tar getNew,"_b lank"],[d. lang.commo n.targetTo p,"_top"], [d.lang.co mmon.targe tSelf, | |||||
| 38 | "_self"],[ d.lang.com mon.target Parent,"_p arent"]],s etup:funct ion(a,b){2 ==a&&this. setValue(b .getAttrib ute("targe t")||"")}, commit:fun ction(a,b) {2==a&&(th is.getValu e()||this. isChanged( ))&&b.setA ttribute(" target",th is.getValu e())}}]},{ id:"Upload ",hidden:! 0,filebrow ser:"uploa dButton",l abel:d.lan g.image.up load,eleme nts:[{type :"file",id :"upload", label:d.la ng.image.b tnUpload,s tyle:"heig ht:40px",s ize:38},{t ype:"fileB utton",id: "uploadBut ton",fileb rowser:"in fo:txtUrl" ,label:d.l ang.image. btnUpload, "for":["Up load", | |||||
| 39 | "upload"]} ]},{id:"ad vanced",la bel:d.lang .common.ad vancedTab, elements:[ {type:"hbo x",widths: ["50%","25 %","25%"], children:[ {type:"tex t",id:"lin kId",requi redContent :"img[id]" ,label:d.l ang.common .id,setup: function(a ,b){1==a&& this.setVa lue(b.getA ttribute(" id"))},com mit:functi on(a,b){1= =a&&(this. getValue() ||this.isC hanged())& &b.setAttr ibute("id" ,this.getV alue())}}, {id:"cmbLa ngDir",typ e:"select" ,requiredC ontent:"im g[dir]",st yle:"width : 100px;" ,label:d.l ang.common .langDir," default":" ",items:[[ d.lang.com mon.notSet , | |||||
| 40 | ""],[d.lan g.common.l angDirLtr, "ltr"],[d. lang.commo n.langDirR tl,"rtl"]] ,setup:fun ction(a,b) {1==a&&thi s.setValue (b.getAttr ibute("dir "))},commi t:function (a,b){1==a &&(this.ge tValue()|| this.isCha nged())&&b .setAttrib ute("dir", this.getVa lue())}},{ type:"text ",id:"txtL angCode",r equiredCon tent:"img[ lang]",lab el:d.lang. common.lan gCode,"def ault":"",s etup:funct ion(a,b){1 ==a&&this. setValue(b .getAttrib ute("lang" ))},commit :function( a,b){1==a& &(this.get Value()||t his.isChan ged())&&b. setAttribu te("lang", this.getVa lue())}}]} , | |||||
| 41 | {type:"tex t",id:"txt GenLongDes cr",requir edContent: "img[longd esc]",labe l:d.lang.c ommon.long Descr,setu p:function (a,b){1==a &&this.set Value(b.ge tAttribute ("longDesc "))},commi t:function (a,b){1==a &&(this.ge tValue()|| this.isCha nged())&&b .setAttrib ute("longD esc",this. getValue() )}},{type: "hbox",wid ths:["50%" ,"50%"],ch ildren:[{t ype:"text" ,id:"txtGe nClass",re quiredCont ent:"img(c ke-xyz)",l abel:d.lan g.common.c ssClass,"d efault":"" ,setup:fun ction(a,b) {1==a&&thi s.setValue (b.getAttr ibute("cla ss"))},com mit:functi on(a, | |||||
| 42 | b){1==a&&( this.getVa lue()||thi s.isChange d())&&b.se tAttribute ("class",t his.getVal ue())}},{t ype:"text" ,id:"txtGe nTitle",re quiredCont ent:"img[t itle]",lab el:d.lang. common.adv isoryTitle ,"default" :"",onChan ge:functio n(){e(this .getDialog ())},setup :function( a,b){1==a& &this.setV alue(b.get Attribute( "title"))} ,commit:fu nction(a,b ){1==a?(th is.getValu e()||this. isChanged( ))&&b.setA ttribute(" title",thi s.getValue ()):4==a?b .setAttrib ute("title ",this.get Value()):8 ==a&&b.rem oveAttribu te("title" )}}]},{typ e:"text",i d:"txtdlgG enStyle", | |||||
| 43 | requiredCo ntent:"img {cke-xyz}" ,label:d.l ang.common .cssStyle, validate:C KEDITOR.di alog.valid ate.inline Style(d.la ng.common. invalidInl ineStyle), "default": "",setup:f unction(a, b){if(1==a ){var c=b. getAttribu te("style" );!c&&b.$. style.cssT ext&&(c=b. $.style.cs sText);thi s.setValue (c);var d= b.$.style. height,c=b .$.style.w idth,d=(d? d:"").matc h(m),c=(c? c:"").matc h(m);this. attributes InStyle={h eight:!!d, width:!!c} }},onChang e:function (){k.call( this,"info :cmbFloat info:cmbAl ign info:t xtVSpace i nfo:txtHSp ace info:t xtBorder i nfo:txtWid th info:tx tHeight".s plit(" ")) ; | |||||
| 44 | e(this)},c ommit:func tion(a,b){ 1==a&&(thi s.getValue ()||this.i sChanged() )&&b.setAt tribute("s tyle",this .getValue( ))}}]}]}}; CKEDITOR.d ialog.add( "image",fu nction(d){ return v(d ,"image")} );CKEDITOR .dialog.ad d("imagebu tton",func tion(d){re turn v(d," imagebutto n")})})(); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.