Board Thread:Support Requests - Getting Technical/@comment-26978548-20171107192123

Hello, I am having touble getting my global javscript to work.

  $ ( function ( ) {      if ( wgAction === 'edit' ) { GlobalTriggers.bind ( 'WikiaEditorReady' <span class="sy0" style="color:rgb(51,153,51);">, <span class="kw0" style="font-weight:bold;color:rgb(7,54,66);">function <span class="br0" style="color:rgb(0,153,0);">( e<span class="br0" style="color:rgb(0,153,0);">) <span class="br0" style="color:rgb(0,153,0);">{              <span class="kw1" style="font-weight:bold;color:rgb(133,153,0);">if <span class="br0" style="color:rgb(0,153,0);">( window.<span class="me1" style="color:rgb(38,139,210);">CKEDITOR <span class="sy0" style="color:rgb(51,153,51);">&& window.<span class="me1" style="color:rgb(38,139,210);">CKEDITOR .<span class="me1" style="color:rgb(38,139,210);">tools <span class="br0" style="color:rgb(0,153,0);">)                   setTimeout<span class="br0" style="color:rgb(0,153,0);">( window.<span class="me1" style="color:rgb(38,139,210);">CKEDITOR .<span class="me1" style="color:rgb(38,139,210);">tools .<span class="me1" style="color:rgb(38,139,210);">callFunction .<span class="me1" style="color:rgb(38,139,210);">bind <span class="br0" style="color:rgb(0,153,0);">( cke_21<span class="sy0" style="color:rgb(51,153,51);">, <span class="nu0" style="color:rgb(211,54,130);">53 <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">, <span class="nu0" style="color:rgb(211,54,130);">100 <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">;      <span class="br0" style="color:rgb(0,153,0);">}   <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">) <span class="sy0" style="color:rgb(51,153,51);">; <span class="sy0" style="color:rgb(51,153,51);">The function of the script is to bypass the clasic Visual editor, and take me straight to source mode. However, for the past month, it has not been working. <ac_metadata title="global.js bug"> </ac_metadata>