Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
reduced space in Advanced and Simple editor Details »»
reduced space in Advanced and Simple editor
Version: 1.00, by fxdigi-cash fxdigi-cash is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.2.1 Rating:
Released: 04-18-2014 Last Update: Never Installs: 8
Re-useable Code Code Changes  
No support by the author.

intro:
The purpose of this modification is to reduce the extra unnecessary space between icons in the simple and advanced editor. it is a little unpleasant to see the empty space especially in the advanced editor menu. Thus this modification to clean that up to VB users and owners.
installation steps:

1- Open up in your favorite html editor this JavaScript file: /clientscript/ckeditor/ckeditor.js

2- find the following line and DELETE it:

Code:
<div class="cke_break"></div>
3- Save your file and upload it back to the same location, and you are done.

Screenshots:

Simple editor before modification -->




Simple editor after modification -->



Advanced editor before modification -->



Advanced editor after modification -->



There are no settings or anything else to do for this modification. enjoy!!

---------------------------------------------
Compatible with VB 4.x.x.

-------------------------------------------------------------------------------------------

v1.0 April 19th 2014
  • Initial Release.

-------------------------------------------------------------------------------------------

Please "Mark as Installed" if you use this.

Nominate MOTM if you LOVE it!

Good luck for All,

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
tbworld

Comments
  #2  
Old 04-19-2014, 01:11 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

RESERVED!!

Good luck for all...
Reply With Quote
  #3  
Old 04-19-2014, 03:41 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to see if this works on 4.2.2 I'll report back after I see how it looks.
Reply With Quote
  #4  
Old 04-19-2014, 03:51 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I open the js file there is no formatting to the code. Everything runs together with no line breaks. Is that normal?


I have always used the Notepad++ editor and never had a problem with it before.


Below is just a small amount of the code and how it looks to me in the editor.


Code:
(function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;if(!window.CKEDITOR)window.CKEDITOR=(function(){var e={timestamp:'B8DJ5M3',version:'3.6.2',revision:'7275',_:{},status:'unloaded',basePath:(function(){var h=window.CKEDITOR_BASEPATH||'';if(!h){var i=document.getElementsByTagName('script');for(var j=0;j<i.length;j++){var k=i[j].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(k){h=k[1];break;}}}if(h.indexOf(':/')==-1)if(h.indexOf('/')===0)h=location.href.match(/^.*?:\/\/[^\/]*/)[0]+h;else h=location.href.match(/^[^\?]*\/(?:)/)[0]+h;if(!h)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return h;})(),getUrl:function(h){if(h.indexOf(':/')==-1&&h.indexOf('/')!==0)h=this.basePath+h;if(this.timestamp&&h.charAt(h.length-1)!='/'&&!/[&?]t=/.test(h))h+=(h.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return h;}},f=window.CKEDITOR_GETURL;if(f){var g=e.getUrl;e.getUrl=function(h){return f.call(e,h)||g.call(e,h);};}return e;})();var e=CKEDITOR;if(!e.event){e.event=function(){};e.event.implementOn=function(f){var g=e.event.prototype;for(var h in g){if(f[h]==undefined)f[h]=g[h];}};e.event.prototype=(function(){var f=function(h){var i=h.getPrivate&&h.getPrivate()||h._||(h._={});return i.events||(i.events={});},g=function(h){this.name=h;this.listeners=[];};g.prototype={getListenerIndex:function(h){for(var i=0,j=this.listeners;i<j.length;i++){if(j[i].fn==h)return i;}return-1;}};return{on:function(h,i,j,k,l){var m=f(this),n=m[h]||(m[h]=new g(h));if(n.getListenerIndex(i)<0){var o=n.listeners;if(!j)j=this;if(isNaN(l))l=10;var p=this,q=function(s,t,u,v){var w={name:h,sender:this,editor:s,data:t,listenerData:k,stop:u,cancel:v,removeListener:function(){p.removeListener(h,i);}};i.call(j,w);return w.data;};q.fn=i;q.priority=l;for(var r=o.length-1;r>=0;r--){if(o[r].priority<=l){o.splice(r+1,0,q);return;}}o.unshift(q);}},fire:(function(){var h=false,i=function(){h=true;},j=false,k=function(){j=true;};return function(l,m,n){var o=f(this)[l],p=h,q=j;h=j=false;if(o){var r=o.listeners;if(r.length){r=r.slice(0);for(var s=0;s<r.length;s++){var t=r[s].call(this,n,m,i,k);if(typeof t!='undefined')m=t;if(h||j)break;}}}var u=j||(typeof m=='undefined'?false:m);h=p;j=q;return u;};})(),fireOnce:function(h,i,j){var k=this.fire(h,i,j);delete f(this)[h];return k;},removeListener:function(h,i){var j=f(this)[h];if(j){var k=j.getListenerIndex(i);if(k>=0)j.listeners.splice(k,1);
}},hasListeners:function(h){var i=f(this)[h];return i&&i.listeners.length>0;}};})();}if(!e.editor){e.ELEMENT_MODE_NONE=0;e.ELEMENT_MODE_REPLACE=1;e.ELEMENT_MODE_APPENDTO=2;e.editor=function(f,g,h,i){var j=this;j._={instanceConfig:f,element:g,data:i};j.elementMode=h||0;e.event.call(j);j._init();};e.editor.replace=function(f,g){var h=f;if(typeof h!='object'){h=document.getElementById(f);if(h&&h.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1})h=null;if(!h){var i=0,j=document.getElementsByName(f);while((h=j[i++])&&h.tagName.toLowerCase()!='textarea'){}}if(!h)throw '[CKEDITOR.editor.replace] The element with id or name "'+f+'" was not found.';}h.style.visibility='hidden';return new e.editor(g,h,1);};e.editor.appendTo=function(f,g,h){var i=f;if(typeof i!='object'){i=document.getElementById(f);if(!i)throw '[CKEDITOR.editor.appendTo] The element with id "'+f+'" was not found.';}return new e.editor(g,i,2,h);};e.editor.prototype={_init:function(){var f=e.editor._pending||(e.editor._pending=[]);f.push(this);},fire:function(f,g){return e.event.prototype.fire.call(this,f,g,this);},fireOnce:function(f,g){return e.event.prototype.fireOnce.call(this,f,g,this);}};e.event.implementOn(e.editor.prototype,true);}if(!e.env)e.env=(function(){var f=navigator.userAgent.toLowerCase(),g=window.opera,h={ie:/*@cc_on!@*/false,opera:!!g&&g.version,webkit:f.indexOf(' applewebkit/')>-1,air:f.indexOf(' adobeair/')>-1,mac:f.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:f.indexOf('mobile')>-1,iOS:/(ipad|iphone|ipod)/.test(f),isCustomDomain:function(){if(!this.ie)return false;var k=document.domain,l=window.location.hostname;return k!=l&&k!='['+l+']';},secure:location.protocol=='https:'};h.gecko=navigator.product=='Gecko'&&!h.webkit&&!h.opera;var i=0;if(h.ie){i=parseFloat(f.match(/msie (\d+)/)[1]);h.ie8=!!document.documentMode;h.ie8Compat=document.documentMode==8;h.ie9Compat=document.documentMode==9;h.ie7Compat=i==7&&!document.documentMode||document.documentMode==7;h.ie6Compat=i<7||h.quirks;}if(h.gecko){var j=f.match(/rv:([\d\.]+)/);if(j){j=j[1].split('.');i=j[0]*10000+(j[1]||0)*100+parseInt(j[2]||0,10);}}if(h.opera)i=parseFloat(g.version());if(h.air)i=parseFloat(f.match(/ adobeair\/(\d+)/)[1]);if(h.webkit)i=parseFloat(f.match(/ applewebkit\/(\d+)/)[1]);h.version=i;h.isCompatible=h.iOS&&i>=534||!h.mobile&&(h.ie&&i>=6||h.gecko&&i>=10801||h.opera&&i>=9.5||h.air&&i>=1||h.webkit&&i>=522||false);h.cssClass='cke_browser_'+(h.ie?'ie':h.gecko?'gecko':h.opera?'opera':h.webkit?'webkit':'unknown');
if(h.quirks)h.cssClass+=' cke_browser_quirks';if(h.ie){h.cssClass+=' cke_browser_ie'+(h.version<7?'6':h.version>=8?document.documentMode:'7');if(h.quirks)h.cssClass+=' cke_browser_iequirks';}if(h.gecko&&i<10900)h.cssClass+=' cke_browser_gecko18';if(h.air)h.cssClass+=' cke_browser_air';return h;})();var f=e.env;var g=f.ie;if(e.status=='unloaded')(function(){e.event.implementOn(e);e.loadFullCore=function(){if(e.status!='basic_ready'){e.loadFullCore._load=1;return;}delete e.loadFullCore;var i=document.createElement('script');i.type='text/javascript';i.src=e.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(i);};e.loadFullCoreTimeout=0;e.replaceClass='ckeditor';e.replaceByClassEnabled=1;var h=function(i,j,k,l){if(f.isCompatible){if(e.loadFullCore)e.loadFullCore();var m=k(i,j,l);e.add(m);return m;}return null;};e.replace=function(i,j){return h(i,j,e.editor.replace);};e.appendTo=function(i,j,k){return h(i,j,e.editor.appendTo,k);};e.add=function(i){var j=this._.pending||(this._.pending=[]);j.push(i);};e.replaceAll=function(){var i=document.getElementsByTagName('textarea');for(var j=0;j<i.length;j++){var k=null,l=i[j];if(!l.name&&!l.id)continue;if(typeof arguments[0]=='string'){var m=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!m.test(l.className))continue;}else if(typeof arguments[0]=='function'){k={};if(arguments[0](l,k)===false)continue;}this.replace(l,k);}};(function(){var i=function(){var j=e.loadFullCore,k=e.loadFullCoreTimeout;if(e.replaceByClassEnabled)e.replaceAll(e.replaceClass);e.status='basic_ready';if(j&&j._load)j();else if(k)setTimeout(function(){if(e.loadFullCore)e.loadFullCore();},k*1000);};if(window.addEventListener)window.addEventListener('load',i,false);else if(window.attachEvent)window.attachEvent('onload',i);})();e.status='basic_loaded';})();e.dom={};var h=e.dom;(function(){var i=[];e.on('reset',function(){i=[];});e.tools={arrayCompare:function(j,k){if(!j&&!k)return true;if(!j||!k||j.length!=k.length)return false;for(var l=0;l<j.length;l++){if(j[l]!=k[l])return false;}return true;},clone:function(j){var k;if(j&&j instanceof Array){k=[];for(var l=0;l<j.length;l++)k[l]=this.clone(j[l]);return k;}if(j===null||typeof j!='object'||j instanceof String||j instanceof Number||j instanceof Boolean||j instanceof Date||j instanceof RegExp)return j;k=new j.constructor();for(var m in j){var n=j[m];k[m]=this.clone(n);}return k;},capitalize:function(j){return j.charAt(0).toUpperCase()+j.substring(1).toLowerCase();},extend:function(j){var k=arguments.length,l,m;
if(typeof (l=arguments[k-1])=='boolean')k--;else if(typeof (l=arguments[k-2])=='boolean'){m=arguments[k-1];k-=2;}for(var n=1;n<k;n++){var o=arguments[n];for(var p in o){if(l===true||j[p]==undefined)if(!m||p in m)j[p]=o[p];}}return j;},prototypedCopy:function(j){var k=function(){};k.prototype=j;return new k();},isArray:function(j){return!!j&&j instanceof Array;},isEmpty:function(j){for(var k in j){if(j.hasOwnProperty(k))return false;}return true;},cssStyleToDomStyle:(function(){var j=document.createElement('div').style,k=typeof j.cssFloat!='undefined'?'cssFloat':typeof j.styleFloat!='undefined'?'styleFloat':'float';return function(l){if(l=='float')return k;else return l.replace(/-./g,function(m){return m.substr(1).toUpperCase();});};})(),buildStyleHtml:function(j){j=[].concat(j);var k,l=[];for(var m=0;m<j.length;m++){k=j[m];if(/@import|[{}]/.test(k))l.push('<style>'+k+'</style>');else l.push('<link type="text/css" rel=stylesheet href="'+k+'">');}return l.join('');},htmlEncode:function(j){var k=function(o){var p=new h.element('span');p.setText(o);return p.getHtml();},l=k('\n').toLowerCase()=='<br>'?function(o){return k(o).replace(/<br>/gi,'\n');}:k,m=k('>')=='>'?function(o){return l(o).replace(/>/g,'&gt;');}:l,n=k('  ')=='&nbsp; '?function(o){return m(o).replace(/&nbsp;/g,' ');}:m;this.htmlEncode=n;return this.htmlEncode(j);},htmlEncodeAttr:function(j){return j.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');},getNextNumber:(function(){var j=0;return function(){return++j;};})(),getNextId:function(){return 'cke_'+this.getNextNumber();},override:function(j,k){return k(j);},setTimeout:function(j,k,l,m,n){if(!n)n=window;if(!l)l=n;return n.setTimeout(function(){if(m)j.apply(l,[].concat(m));else j.apply(l);},k||0);},trim:(function(){var j=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(k){return k.replace(j,'');};})(),ltrim:(function(){var j=/^[ \t\n\r]+/g;return function(k){return k.replace(j,'');};})(),rtrim:(function(){var j=/[ \t\n\r]+$/g;return function(k){return k.replace(j,'');};})(),indexOf:Array.prototype.indexOf?function(j,k){return j.indexOf(k);}:function(j,k){for(var l=0,m=j.length;l<m;l++){if(j[l]===k)return l;}return-1;},bind:function(j,k){return function(){return j.apply(k,arguments);};},createClass:function(j){var k=j.$,l=j.base,m=j.privates||j._,n=j.proto,o=j.statics;if(m){var p=k;k=function(){var t=this;var q=t._||(t._={});for(var r in m){var s=m[r];q[r]=typeof s=='function'?e.tools.bind(s,t):s;}p.apply(t,arguments);};}if(l){k.prototype=this.prototypedCopy(l.prototype);
k.prototype['constructor']=k;k.prototype.base=function(){this.base=l.prototype.base;l.apply(this,arguments);this.base=arguments.callee;};}if(n)this.extend(k.prototype,n,true);if(o)this.extend(k,o,true);return k;},addFunction:function(j,k){return i.push(function(){return j.apply(k||this,arguments);})-1;},removeFunction:function(j){i[j]=null;},callFunction:function(j){var k=i[j];return k&&k.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){return function(j){return j+(!j||isNaN(Number(j))?'':'px');};})(),convertToPx:(function(){var j;return function(k){if(!j){j=h.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',e.document);e.document.getBody().append(j);}if(!/%$/.test(k)){j.setStyle('width',k);return j.$.clientWidth;}return k;};})(),repeat:function(j,k){return new Array(k+1).join(j);},tryThese:function(){var j;for(var k=0,l=arguments.length;k<l;k++){var m=arguments[k];try{j=m();break;}catch(n){}}return j;},genKey:function(){return Array.prototype.slice.call(arguments).join('-');}};})();var i=e.tools;e.dtd=(function(){var j=i.extend,k={isindex:1,fieldset:1},l={input:1,button:1,select:1,textarea:1,label:1},m=j({a:1},l),n=j({iframe:1},m),o={hr:1,ul:1,menu:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},p={ins:1,del:1,script:1,style:1},q=j({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1,wbr:1},p),r=j({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1,mark:1},q),s=j({p:1},r),t=j({iframe:1},r,l),u={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},v=j({a:1},t),w={tr:1},x={'#':1},y=j({param:1},u),z=j({form:1},k,n,o,s),A={li:1},B={style:1,script:1},C={base:1,link:1,meta:1,title:1},D=j(C,B),E={head:1,body:1},F={html:1},G={address:1,blockquote:1,center:1,dir:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
return{$nonBodyContent:j(F,E,C),$block:G,$blockLimit:{body:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,td:1,th:1,caption:1,form:1},$inline:v,$body:j({script:1,style:1},G),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1,wbr:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1,audio:1,video:1},$captionBlock:{caption:1,legend:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1,mark:1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:E,head:D,style:x,script:x,body:z,base:{},link:{},meta:{},title:x,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:z,td:z,br:{},wbr:{},th:z,center:z,kbd:v,button:j(s,o),basefont:{},h5:v,h4:v,samp:v,h6:v,ol:A,h1:v,h3:v,option:x,h2:v,form:j(k,n,o,s),select:{optgroup:1,option:1},font:v,ins:v,menu:A,abbr:v,label:v,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:v,tfoot:w,cite:v,li:z,input:{},iframe:z,strong:v,textarea:x,noframes:z,big:v,small:v,span:v,hr:{},dt:v,sub:v,optgroup:{option:1},param:{},bdo:v,'var':v,div:z,object:y,sup:v,dd:z,strike:v,area:{},dir:A,map:j({area:1,form:1,p:1},k,p,o),applet:y,dl:{dt:1,dd:1},del:v,isindex:{},fieldset:j({legend:1},u),thead:w,ul:A,acronym:v,b:v,a:t,blockquote:z,caption:v,i:v,u:v,tbody:w,s:v,address:j(n,s),tt:v,legend:v,q:v,pre:j(q,m),p:v,em:v,dfn:v,section:z,header:z,footer:z,nav:z,article:z,aside:z,figure:z,dialog:z,hgroup:z,mark:v,time:v,meter:v,menu:v,command:v,keygen:v,output:v,progress:y,audio:y,video:y,details:y,datagrid:y,datalist:y};})();var j=e.dtd;h.event=function(k){this.$=k;};h.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var l=this;var k=l.getKey();if(l.$.ctrlKey||l.$.metaKey)k+=1114112;if(l.$.shiftKey)k+=2228224;if(l.$.altKey)k+=4456448;return k;},preventDefault:function(k){var l=this.$;if(l.preventDefault)l.preventDefault();else l.returnValue=false;if(k)this.stopPropagation();},stopPropagation:function(){var k=this.$;if(k.stopPropagation)k.stopPropagation();else k.cancelBubble=true;
},getTarget:function(){var k=this.$.target||this.$.srcElement;return k?new h.node(k):null;}};e.CTRL=1114112;e.SHIFT=2228224;e.ALT=4456448;h.domObject=function(k){if(k)this.$=k;};h.domObject.prototype=(function(){var k=function(l,m){return function(n){if(typeof e!='undefined')l.fire(m,new h.event(n));};};return{getPrivate:function(){var l;if(!(l=this.getCustomData('_')))this.setCustomData('_',l={});return l;},on:function(l){var o=this;var m=o.getCustomData('_cke_nativeListeners');if(!m){m={};o.setCustomData('_cke_nativeListeners',m);}if(!m[l]){var n=m[l]=k(o,l);if(o.$.attachEvent)o.$.attachEvent('on'+l,n);else if(o.$.addEventListener)o.$.addEventListener(l,n,!!e.event.useCapture);}return e.event.prototype.on.apply(o,arguments);},removeListener:function(l){var o=this;e.event.prototype.removeListener.apply(o,arguments);if(!o.hasListeners(l)){var m=o.getCustomData('_cke_nativeListeners'),n=m&&m[l];if(n){if(o.$.detachEvent)o.$.detachEvent('on'+l,n);else if(o.$.removeEventListener)o.$.removeEventListener(l,n,false);delete m[l];}}},removeAllListeners:function(){var o=this;var l=o.getCustomData('_cke_nativeListeners');for(var m in l){var n=l[m];if(o.$.detachEvent)o.$.detachEvent('on'+m,n);else if(o.$.removeEventListener)o.$.removeEventListener(m,n,false);delete l[m];}}};})();(function(k){var l={};e.on('reset',function(){l={};});k.equals=function(m){return m&&m.$===this.$;};k.setCustomData=function(m,n){var o=this.getUniqueId(),p=l[o]||(l[o]={});p[m]=n;return this;};k.getCustomData=function(m){var n=this.$['data-cke-expando'],o=n&&l[n];return o&&o[m];};k.removeCustomData=function(m){var n=this.$['data-cke-expando'],o=n&&l[n],p=o&&o[m];if(typeof p!='undefined')delete o[m];return p||null;};k.clearCustomData=function(){this.removeAllListeners();var m=this.$['data-cke-expando'];m&&delete l[m];};k.getUniqueId=function(){return this.$['data-cke-expando']||(this.$['data-cke-expando']=i.getNextNumber());};e.event.implementOn(k);})(h.domObject.prototype);h.window=function(k){h.domObject.call(this,k);};h.window.prototype=new h.domObject();i.extend(h.window.prototype,{focus:function(){if(f.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},getViewPaneSize:function(){var k=this.$.document,l=k.compatMode=='CSS1Compat';return{width:(l?k.documentElement.clientWidth:k.body.clientWidth)||0,height:(l?k.documentElement.clientHeight:k.body.clientHeight)||0};},getScrollPosition:function(){var k=this.$;if('pageXOffset' in k)return{x:k.pageXOffset||0,y:k.pageYOffset||0};else{var l=k.document;
return{x:l.documentElement.scrollLeft||l.body.scrollLeft||0,y:l.documentElement.scrollTop||l.body.scrollTop||0};}}});h.document=function(k){h.domObject.call(this,k);};var k=h.document;k.prototype=new h.domObject();i.extend(k.prototype,{appendStyleSheet:function(l){if(this.$.createStyleSheet)this.$.createStyleSheet(l);else{var m=new h.element('link');m.setAttributes({rel:'stylesheet',type:'text/css',href:l});this.getHead().append(m);}},appendStyleText:function(l){var o=this;if(o.$.createStyleSheet){var m=o.$.createStyleSheet('');m.cssText=l;}else{var n=new h.element('style',o);n.append(new h.text(l,o));o.getHead().append(n);}},createElement:function(l,m){var n=new h.element(l,this);if(m)
Reply With Quote
  #5  
Old 04-19-2014, 04:09 AM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is normal because it is mini format. In other words it is optimized.
Reply With Quote
  #6  
Old 04-19-2014, 04:29 AM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its for our own sake javascript or jQuery are minified to save pageload time . If you want you can unminify them easily once work done minify them back
TOOL HERE
Reply With Quote
  #7  
Old 04-19-2014, 04:47 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GaryT View Post
When I open the js file there is no formatting to the code. Everything runs together with no line breaks. Is that normal?


I have always used the Notepad++ editor and never had a problem with it before.


Below is just a small amount of the code and how it looks to me in the editor.


Code:
(function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;if(!window.CKEDITOR)window.CKEDITOR=(function(){var e={timestamp:'B8DJ5M3',version:'3.6.2',revision:'7275',_:{},status:'unloaded',basePath:(function(){var h=window.CKEDITOR_BASEPATH||'';if(!h){var i=document.getElementsByTagName('script');for(var j=0;j<i.length;j++){var k=i[j].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(k){h=k[1];break;}}}if(h.indexOf(':/')==-1)if(h.indexOf('/')===0)h=location.href.match(/^.*?:\/\/[^\/]*/)[0]+h;else h=location.href.match(/^[^\?]*\/(?:)/)[0]+h;if(!h)throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return h;})(),getUrl:function(h){if(h.indexOf(':/')==-1&&h.indexOf('/')!==0)h=this.basePath+h;if(this.timestamp&&h.charAt(h.length-1)!='/'&&!/[&?]t=/.test(h))h+=(h.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return h;}},f=window.CKEDITOR_GETURL;if(f){var g=e.getUrl;e.getUrl=function(h){return f.call(e,h)||g.call(e,h);};}return e;})();var e=CKEDITOR;if(!e.event){e.event=function(){};e.event.implementOn=function(f){var g=e.event.prototype;for(var h in g){if(f[h]==undefined)f[h]=g[h];}};e.event.prototype=(function(){var f=function(h){var i=h.getPrivate&&h.getPrivate()||h._||(h._={});return i.events||(i.events={});},g=function(h){this.name=h;this.listeners=[];};g.prototype={getListenerIndex:function(h){for(var i=0,j=this.listeners;i<j.length;i++){if(j[i].fn==h)return i;}return-1;}};return{on:function(h,i,j,k,l){var m=f(this),n=m[h]||(m[h]=new g(h));if(n.getListenerIndex(i)<0){var o=n.listeners;if(!j)j=this;if(isNaN(l))l=10;var p=this,q=function(s,t,u,v){var w={name:h,sender:this,editor:s,data:t,listenerData:k,stop:u,cancel:v,removeListener:function(){p.removeListener(h,i);}};i.call(j,w);return w.data;};q.fn=i;q.priority=l;for(var r=o.length-1;r>=0;r--){if(o[r].priority<=l){o.splice(r+1,0,q);return;}}o.unshift(q);}},fire:(function(){var h=false,i=function(){h=true;},j=false,k=function(){j=true;};return function(l,m,n){var o=f(this)[l],p=h,q=j;h=j=false;if(o){var r=o.listeners;if(r.length){r=r.slice(0);for(var s=0;s<r.length;s++){var t=r[s].call(this,n,m,i,k);if(typeof t!='undefined')m=t;if(h||j)break;}}}var u=j||(typeof m=='undefined'?false:m);h=p;j=q;return u;};})(),fireOnce:function(h,i,j){var k=this.fire(h,i,j);delete f(this)[h];return k;},removeListener:function(h,i){var j=f(this)[h];if(j){var k=j.getListenerIndex(i);if(k>=0)j.listeners.splice(k,1);
}},hasListeners:function(h){var i=f(this)[h];return i&&i.listeners.length>0;}};})();}if(!e.editor){e.ELEMENT_MODE_NONE=0;e.ELEMENT_MODE_REPLACE=1;e.ELEMENT_MODE_APPENDTO=2;e.editor=function(f,g,h,i){var j=this;j._={instanceConfig:f,element:g,data:i};j.elementMode=h||0;e.event.call(j);j._init();};e.editor.replace=function(f,g){var h=f;if(typeof h!='object'){h=document.getElementById(f);if(h&&h.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1})h=null;if(!h){var i=0,j=document.getElementsByName(f);while((h=j[i++])&&h.tagName.toLowerCase()!='textarea'){}}if(!h)throw '[CKEDITOR.editor.replace] The element with id or name "'+f+'" was not found.';}h.style.visibility='hidden';return new e.editor(g,h,1);};e.editor.appendTo=function(f,g,h){var i=f;if(typeof i!='object'){i=document.getElementById(f);if(!i)throw '[CKEDITOR.editor.appendTo] The element with id "'+f+'" was not found.';}return new e.editor(g,i,2,h);};e.editor.prototype={_init:function(){var f=e.editor._pending||(e.editor._pending=[]);f.push(this);},fire:function(f,g){return e.event.prototype.fire.call(this,f,g,this);},fireOnce:function(f,g){return e.event.prototype.fireOnce.call(this,f,g,this);}};e.event.implementOn(e.editor.prototype,true);}if(!e.env)e.env=(function(){var f=navigator.userAgent.toLowerCase(),g=window.opera,h={ie:/*@cc_on!@*/false,opera:!!g&&g.version,webkit:f.indexOf(' applewebkit/')>-1,air:f.indexOf(' adobeair/')>-1,mac:f.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:f.indexOf('mobile')>-1,iOS:/(ipad|iphone|ipod)/.test(f),isCustomDomain:function(){if(!this.ie)return false;var k=document.domain,l=window.location.hostname;return k!=l&&k!='['+l+']';},secure:location.protocol=='https:'};h.gecko=navigator.product=='Gecko'&&!h.webkit&&!h.opera;var i=0;if(h.ie){i=parseFloat(f.match(/msie (\d+)/)[1]);h.ie8=!!document.documentMode;h.ie8Compat=document.documentMode==8;h.ie9Compat=document.documentMode==9;h.ie7Compat=i==7&&!document.documentMode||document.documentMode==7;h.ie6Compat=i<7||h.quirks;}if(h.gecko){var j=f.match(/rv:([\d\.]+)/);if(j){j=j[1].split('.');i=j[0]*10000+(j[1]||0)*100+parseInt(j[2]||0,10);}}if(h.opera)i=parseFloat(g.version());if(h.air)i=parseFloat(f.match(/ adobeair\/(\d+)/)[1]);if(h.webkit)i=parseFloat(f.match(/ applewebkit\/(\d+)/)[1]);h.version=i;h.isCompatible=h.iOS&&i>=534||!h.mobile&&(h.ie&&i>=6||h.gecko&&i>=10801||h.opera&&i>=9.5||h.air&&i>=1||h.webkit&&i>=522||false);h.cssClass='cke_browser_'+(h.ie?'ie':h.gecko?'gecko':h.opera?'opera':h.webkit?'webkit':'unknown');
if(h.quirks)h.cssClass+=' cke_browser_quirks';if(h.ie){h.cssClass+=' cke_browser_ie'+(h.version<7?'6':h.version>=8?document.documentMode:'7');if(h.quirks)h.cssClass+=' cke_browser_iequirks';}if(h.gecko&&i<10900)h.cssClass+=' cke_browser_gecko18';if(h.air)h.cssClass+=' cke_browser_air';return h;})();var f=e.env;var g=f.ie;if(e.status=='unloaded')(function(){e.event.implementOn(e);e.loadFullCore=function(){if(e.status!='basic_ready'){e.loadFullCore._load=1;return;}delete e.loadFullCore;var i=document.createElement('script');i.type='text/javascript';i.src=e.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(i);};e.loadFullCoreTimeout=0;e.replaceClass='ckeditor';e.replaceByClassEnabled=1;var h=function(i,j,k,l){if(f.isCompatible){if(e.loadFullCore)e.loadFullCore();var m=k(i,j,l);e.add(m);return m;}return null;};e.replace=function(i,j){return h(i,j,e.editor.replace);};e.appendTo=function(i,j,k){return h(i,j,e.editor.appendTo,k);};e.add=function(i){var j=this._.pending||(this._.pending=[]);j.push(i);};e.replaceAll=function(){var i=document.getElementsByTagName('textarea');for(var j=0;j<i.length;j++){var k=null,l=i[j];if(!l.name&&!l.id)continue;if(typeof arguments[0]=='string'){var m=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!m.test(l.className))continue;}else if(typeof arguments[0]=='function'){k={};if(arguments[0](l,k)===false)continue;}this.replace(l,k);}};(function(){var i=function(){var j=e.loadFullCore,k=e.loadFullCoreTimeout;if(e.replaceByClassEnabled)e.replaceAll(e.replaceClass);e.status='basic_ready';if(j&&j._load)j();else if(k)setTimeout(function(){if(e.loadFullCore)e.loadFullCore();},k*1000);};if(window.addEventListener)window.addEventListener('load',i,false);else if(window.attachEvent)window.attachEvent('onload',i);})();e.status='basic_loaded';})();e.dom={};var h=e.dom;(function(){var i=[];e.on('reset',function(){i=[];});e.tools={arrayCompare:function(j,k){if(!j&&!k)return true;if(!j||!k||j.length!=k.length)return false;for(var l=0;l<j.length;l++){if(j[l]!=k[l])return false;}return true;},clone:function(j){var k;if(j&&j instanceof Array){k=[];for(var l=0;l<j.length;l++)k[l]=this.clone(j[l]);return k;}if(j===null||typeof j!='object'||j instanceof String||j instanceof Number||j instanceof Boolean||j instanceof Date||j instanceof RegExp)return j;k=new j.constructor();for(var m in j){var n=j[m];k[m]=this.clone(n);}return k;},capitalize:function(j){return j.charAt(0).toUpperCase()+j.substring(1).toLowerCase();},extend:function(j){var k=arguments.length,l,m;
if(typeof (l=arguments[k-1])=='boolean')k--;else if(typeof (l=arguments[k-2])=='boolean'){m=arguments[k-1];k-=2;}for(var n=1;n<k;n++){var o=arguments[n];for(var p in o){if(l===true||j[p]==undefined)if(!m||p in m)j[p]=o[p];}}return j;},prototypedCopy:function(j){var k=function(){};k.prototype=j;return new k();},isArray:function(j){return!!j&&j instanceof Array;},isEmpty:function(j){for(var k in j){if(j.hasOwnProperty(k))return false;}return true;},cssStyleToDomStyle:(function(){var j=document.createElement('div').style,k=typeof j.cssFloat!='undefined'?'cssFloat':typeof j.styleFloat!='undefined'?'styleFloat':'float';return function(l){if(l=='float')return k;else return l.replace(/-./g,function(m){return m.substr(1).toUpperCase();});};})(),buildStyleHtml:function(j){j=[].concat(j);var k,l=[];for(var m=0;m<j.length;m++){k=j[m];if(/@import|[{}]/.test(k))l.push('<style>'+k+'</style>');else l.push('<link type="text/css" rel=stylesheet href="'+k+'">');}return l.join('');},htmlEncode:function(j){var k=function(o){var p=new h.element('span');p.setText(o);return p.getHtml();},l=k('\n').toLowerCase()=='<br>'?function(o){return k(o).replace(/<br>/gi,'\n');}:k,m=k('>')=='>'?function(o){return l(o).replace(/>/g,'&gt;');}:l,n=k('  ')=='&nbsp; '?function(o){return m(o).replace(/&nbsp;/g,' ');}:m;this.htmlEncode=n;return this.htmlEncode(j);},htmlEncodeAttr:function(j){return j.replace(/"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;');},getNextNumber:(function(){var j=0;return function(){return++j;};})(),getNextId:function(){return 'cke_'+this.getNextNumber();},override:function(j,k){return k(j);},setTimeout:function(j,k,l,m,n){if(!n)n=window;if(!l)l=n;return n.setTimeout(function(){if(m)j.apply(l,[].concat(m));else j.apply(l);},k||0);},trim:(function(){var j=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(k){return k.replace(j,'');};})(),ltrim:(function(){var j=/^[ \t\n\r]+/g;return function(k){return k.replace(j,'');};})(),rtrim:(function(){var j=/[ \t\n\r]+$/g;return function(k){return k.replace(j,'');};})(),indexOf:Array.prototype.indexOf?function(j,k){return j.indexOf(k);}:function(j,k){for(var l=0,m=j.length;l<m;l++){if(j[l]===k)return l;}return-1;},bind:function(j,k){return function(){return j.apply(k,arguments);};},createClass:function(j){var k=j.$,l=j.base,m=j.privates||j._,n=j.proto,o=j.statics;if(m){var p=k;k=function(){var t=this;var q=t._||(t._={});for(var r in m){var s=m[r];q[r]=typeof s=='function'?e.tools.bind(s,t):s;}p.apply(t,arguments);};}if(l){k.prototype=this.prototypedCopy(l.prototype);
k.prototype['constructor']=k;k.prototype.base=function(){this.base=l.prototype.base;l.apply(this,arguments);this.base=arguments.callee;};}if(n)this.extend(k.prototype,n,true);if(o)this.extend(k,o,true);return k;},addFunction:function(j,k){return i.push(function(){return j.apply(k||this,arguments);})-1;},removeFunction:function(j){i[j]=null;},callFunction:function(j){var k=i[j];return k&&k.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){return function(j){return j+(!j||isNaN(Number(j))?'':'px');};})(),convertToPx:(function(){var j;return function(k){if(!j){j=h.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',e.document);e.document.getBody().append(j);}if(!/%$/.test(k)){j.setStyle('width',k);return j.$.clientWidth;}return k;};})(),repeat:function(j,k){return new Array(k+1).join(j);},tryThese:function(){var j;for(var k=0,l=arguments.length;k<l;k++){var m=arguments[k];try{j=m();break;}catch(n){}}return j;},genKey:function(){return Array.prototype.slice.call(arguments).join('-');}};})();var i=e.tools;e.dtd=(function(){var j=i.extend,k={isindex:1,fieldset:1},l={input:1,button:1,select:1,textarea:1,label:1},m=j({a:1},l),n=j({iframe:1},m),o={hr:1,ul:1,menu:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},p={ins:1,del:1,script:1,style:1},q=j({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1,wbr:1},p),r=j({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1,mark:1},q),s=j({p:1},r),t=j({iframe:1},r,l),u={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,mark:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},v=j({a:1},t),w={tr:1},x={'#':1},y=j({param:1},u),z=j({form:1},k,n,o,s),A={li:1},B={style:1,script:1},C={base:1,link:1,meta:1,title:1},D=j(C,B),E={head:1,body:1},F={html:1},G={address:1,blockquote:1,center:1,dir:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
return{$nonBodyContent:j(F,E,C),$block:G,$blockLimit:{body:1,div:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,audio:1,video:1,details:1,datagrid:1,datalist:1,td:1,th:1,caption:1,form:1},$inline:v,$body:j({script:1,style:1},G),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1,wbr:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1,audio:1,video:1},$captionBlock:{caption:1,legend:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1,mark:1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:E,head:D,style:x,script:x,body:z,base:{},link:{},meta:{},title:x,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:z,td:z,br:{},wbr:{},th:z,center:z,kbd:v,button:j(s,o),basefont:{},h5:v,h4:v,samp:v,h6:v,ol:A,h1:v,h3:v,option:x,h2:v,form:j(k,n,o,s),select:{optgroup:1,option:1},font:v,ins:v,menu:A,abbr:v,label:v,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:v,tfoot:w,cite:v,li:z,input:{},iframe:z,strong:v,textarea:x,noframes:z,big:v,small:v,span:v,hr:{},dt:v,sub:v,optgroup:{option:1},param:{},bdo:v,'var':v,div:z,object:y,sup:v,dd:z,strike:v,area:{},dir:A,map:j({area:1,form:1,p:1},k,p,o),applet:y,dl:{dt:1,dd:1},del:v,isindex:{},fieldset:j({legend:1},u),thead:w,ul:A,acronym:v,b:v,a:t,blockquote:z,caption:v,i:v,u:v,tbody:w,s:v,address:j(n,s),tt:v,legend:v,q:v,pre:j(q,m),p:v,em:v,dfn:v,section:z,header:z,footer:z,nav:z,article:z,aside:z,figure:z,dialog:z,hgroup:z,mark:v,time:v,meter:v,menu:v,command:v,keygen:v,output:v,progress:y,audio:y,video:y,details:y,datagrid:y,datalist:y};})();var j=e.dtd;h.event=function(k){this.$=k;};h.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var l=this;var k=l.getKey();if(l.$.ctrlKey||l.$.metaKey)k+=1114112;if(l.$.shiftKey)k+=2228224;if(l.$.altKey)k+=4456448;return k;},preventDefault:function(k){var l=this.$;if(l.preventDefault)l.preventDefault();else l.returnValue=false;if(k)this.stopPropagation();},stopPropagation:function(){var k=this.$;if(k.stopPropagation)k.stopPropagation();else k.cancelBubble=true;
},getTarget:function(){var k=this.$.target||this.$.srcElement;return k?new h.node(k):null;}};e.CTRL=1114112;e.SHIFT=2228224;e.ALT=4456448;h.domObject=function(k){if(k)this.$=k;};h.domObject.prototype=(function(){var k=function(l,m){return function(n){if(typeof e!='undefined')l.fire(m,new h.event(n));};};return{getPrivate:function(){var l;if(!(l=this.getCustomData('_')))this.setCustomData('_',l={});return l;},on:function(l){var o=this;var m=o.getCustomData('_cke_nativeListeners');if(!m){m={};o.setCustomData('_cke_nativeListeners',m);}if(!m[l]){var n=m[l]=k(o,l);if(o.$.attachEvent)o.$.attachEvent('on'+l,n);else if(o.$.addEventListener)o.$.addEventListener(l,n,!!e.event.useCapture);}return e.event.prototype.on.apply(o,arguments);},removeListener:function(l){var o=this;e.event.prototype.removeListener.apply(o,arguments);if(!o.hasListeners(l)){var m=o.getCustomData('_cke_nativeListeners'),n=m&&m[l];if(n){if(o.$.detachEvent)o.$.detachEvent('on'+l,n);else if(o.$.removeEventListener)o.$.removeEventListener(l,n,false);delete m[l];}}},removeAllListeners:function(){var o=this;var l=o.getCustomData('_cke_nativeListeners');for(var m in l){var n=l[m];if(o.$.detachEvent)o.$.detachEvent('on'+m,n);else if(o.$.removeEventListener)o.$.removeEventListener(m,n,false);delete l[m];}}};})();(function(k){var l={};e.on('reset',function(){l={};});k.equals=function(m){return m&&m.$===this.$;};k.setCustomData=function(m,n){var o=this.getUniqueId(),p=l[o]||(l[o]={});p[m]=n;return this;};k.getCustomData=function(m){var n=this.$['data-cke-expando'],o=n&&l[n];return o&&o[m];};k.removeCustomData=function(m){var n=this.$['data-cke-expando'],o=n&&l[n],p=o&&o[m];if(typeof p!='undefined')delete o[m];return p||null;};k.clearCustomData=function(){this.removeAllListeners();var m=this.$['data-cke-expando'];m&&delete l[m];};k.getUniqueId=function(){return this.$['data-cke-expando']||(this.$['data-cke-expando']=i.getNextNumber());};e.event.implementOn(k);})(h.domObject.prototype);h.window=function(k){h.domObject.call(this,k);};h.window.prototype=new h.domObject();i.extend(h.window.prototype,{focus:function(){if(f.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},getViewPaneSize:function(){var k=this.$.document,l=k.compatMode=='CSS1Compat';return{width:(l?k.documentElement.clientWidth:k.body.clientWidth)||0,height:(l?k.documentElement.clientHeight:k.body.clientHeight)||0};},getScrollPosition:function(){var k=this.$;if('pageXOffset' in k)return{x:k.pageXOffset||0,y:k.pageYOffset||0};else{var l=k.document;
return{x:l.documentElement.scrollLeft||l.body.scrollLeft||0,y:l.documentElement.scrollTop||l.body.scrollTop||0};}}});h.document=function(k){h.domObject.call(this,k);};var k=h.document;k.prototype=new h.domObject();i.extend(k.prototype,{appendStyleSheet:function(l){if(this.$.createStyleSheet)this.$.createStyleSheet(l);else{var m=new h.element('link');m.setAttributes({rel:'stylesheet',type:'text/css',href:l});this.getHead().append(m);}},appendStyleText:function(l){var o=this;if(o.$.createStyleSheet){var m=o.$.createStyleSheet('');m.cssText=l;}else{var n=new h.element('style',o);n.append(new h.text(l,o));o.getHead().append(n);}},createElement:function(l,m){var n=new h.element(l,this);if(m)
The code you need to remove is not in this part of the script. try to find this code:

Code:
continue;}H=G.items||G;for(var
it is right after it. so if you found this code you will see the other one next to it...

or you can find this code which is before the code we want to delete:

Code:
if(G==='/'
I tested this process on vb4.2, 4.2.1, 4.2.2 so it should work. There is no optimized version ckeditor.js as I know of since it is not possible to either compress it or optimize...

try it again and let me know!!

Good luck!!
Reply With Quote
  #8  
Old 04-19-2014, 04:51 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CharlieDelta View Post
That is normal because it is mini format. In other words it is optimized.
Thanks for posting CharlieDelta, but let me say there is no optimized version of ckeditor.js as I know of... this can't be done without a web server tool that you need to specify such as Mod_pagespeed or a css or js minifier tool.
Reply With Quote
  #9  
Old 04-19-2014, 04:53 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ramesh_umk3 View Post
Its for our own sake javascript or jQuery are minified to safe pageload time . If you want you can unminify them easily once work done minify them back
TOOL HERE
Thanks ramesh for passing by... you are right, but we here deal with ckeditor.js not Jquery script...
Reply With Quote
  #10  
Old 04-19-2014, 08:10 AM
ahobilam's Avatar
ahobilam ahobilam is offline
 
Join Date: Aug 2011
Location: Chennai, India
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Success in VB 4.2.2 Patch Level 1!
I did through Notepad ++ only using the find and replace option.
Just use the find <div class="cke_break"></div>
It will show as {x.push('<div class="cke_break"></div>');
I removed only : <div class="cke_break"></div>
It works fine.
Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04670 seconds
  • Memory Usage 2,397KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete