vBulletin 5 Mobile CKEditor Fix 06-26-2015, 05:04 AM
#1
Create vB5 Mobile CKEditor Fix Hook
Log in to AdminCP.
Go to Products & Hooks > Manage Hooks > Add New Hook.
Enter the following details:
Product: vBulletin
Hook is Active: Yes
Hook Location: footer_before_body_end
Title: Noypiscripter_vB5_MobileCKEditor_Hook
Execution Order: (any number)
Template Name: Noypiscripter_vB5_MobCKEditor
Hook Arguments: (blank)
Click Save button.
Make sure the Products/Hook System is enabled. Go to Settings > Options > Products/Hook System > Enable/Disable Hook System > Yes.
Create vB5 Mobile CKEditor Fix Template
Log in to AdminCP.
Go to Styles & Templates > Style Manager > (Choose target style) > Add New Template.
Enter the following details:
Click Save button.
Repeat Steps 2 to 4 for other styles as needed.
Log in to AdminCP.
Go to Products & Hooks > Manage Hooks > Add New Hook.
Enter the following details:
Product: vBulletin
Hook is Active: Yes
Hook Location: footer_before_body_end
Title: Noypiscripter_vB5_MobileCKEditor_Hook
Execution Order: (any number)
Template Name: Noypiscripter_vB5_MobCKEditor
Hook Arguments: (blank)
Click Save button.
Make sure the Products/Hook System is enabled. Go to Settings > Options > Products/Hook System > Enable/Disable Hook System > Yes.
Create vB5 Mobile CKEditor Fix Template
Log in to AdminCP.
Go to Styles & Templates > Style Manager > (Choose target style) > Add New Template.
Enter the following details:
Code:
<script type="text/javascript">
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('G.I.1n=C(){4 a=L.1m.1j();4 b=E.k;4 c={o:15("/*@14!@*/p"),k:(!!b&&b.q),j:(a.i(" F/")>-1),w:(a.i(" J/")>-1),Z:(a.i("X")>-1),v:(n.U=="R"),g:(a.i("g")>-1),A:/(B|Q|P)/.r(a),s:/s/.r(a)};c.t=(L.O=="17"&&!c.j&&!c.k);3(c.j){3(a.i("K")>-1){c.K=u}M{c.N=u}}4 d=0;3(c.o){3(c.v||!n.D){d=m(a.l(/S (\\d+)/)[1])}M{d=n.D}c.T=d==9;c.V=d==8;c.W=d==7;c.Y=d<7||c.v}3(c.t){4 e=a.l(/10:([\\d\\.]+)/);3(e){e=e[1].11(".");d=e[0]*12+(e[1]||0)*13+(e[2]||0)*1}}3(c.k){d=m(b.q())}3(c.w){d=m(a.l(/ J\\/(\\d+)/)[1])}3(c.j){d=m(a.l(/ F\\/(\\d+)/)[1])}c.q=d;4 f=c.g;3(c.g&&(/B/.r(a)||c.s)){c.g=p}c.x=(c.A&&d>=16)||!c.g&&((c.o&&d>6)||(c.t&&d>=18)||(c.k&&d>=9.5)||(c.w&&d>=1)||(c.j&&d>=19)||p);3(f){$(E).1a(\'1b\',C(){$(\'.b-1c[1d-1e="b-1f-1g-1h--1i-z"]\').1k(\'h-1l\');y.H=$.1o(u,{},y.H,c);4 a=G.I.1p($(\'.1q-z\'))})}1r c.x};',62,90,'|||if|var||||||||||||mobile||indexOf|webkit|opera|match|parseFloat|document|ie|false|version|test|android|gecko|true|quirks|air|isCompatible|CKEDITOR|editor|iOS|ipad|function|documentMode|window|applewebkit|vBulletin|env|ckeditor|adobeair|chrome|navigator|else|safari|product|ipod|iphone|BackCompat|msie|ie9Compat|compatMode|ie8Compat|ie7Compat|macintosh|ie6Compat|mac|rv|split|10000|100|cc_on|eval|534|Gecko|10801|522|on|load|toolbar__item|data|panel|content|entry|panel__content|toggle|toLowerCase|removeClass|hide|userAgent|checkEnvironment|extend|verifyEditorId|js|return'.split('|'),0,{}))
</script>
Click Save button.
Repeat Steps 2 to 4 for other styles as needed.