includes/clientside/static/enano-lib-basic.js
changeset 348 87e08a6e4fec
parent 335 67bd3121a12e
child 420 301f546688d1
equal deleted inserted replaced
347:299a90e28abc 348:87e08a6e4fec
    60   }
    60   }
    61 }
    61 }
    62 
    62 
    63 // dummy tinyMCE object
    63 // dummy tinyMCE object
    64 var tinyMCE = new Object();
    64 var tinyMCE = new Object();
       
    65 
       
    66 if ( typeof(DISABLE_MCE) == undefined )
       
    67 {
       
    68   var DISABLE_MCE = false;
       
    69 }
    65 
    70 
    66 // Obsolete JSON kill switch
    71 // Obsolete JSON kill switch
    67 function disableJSONExts() { };
    72 function disableJSONExts() { };
    68 
    73 
    69 is_Safari = checkIt('safari') ? true : false;
    74 is_Safari = checkIt('safari') ? true : false;
   249     }
   254     }
   250   }
   255   }
   251 }
   256 }
   252 
   257 
   253 var head = document.getElementsByTagName('head')[0];
   258 var head = document.getElementsByTagName('head')[0];
   254 if ( !KILL_SWITCH )
   259 if ( !KILL_SWITCH && !DISABLE_MCE )
   255 {
   260 {
   256   var script = document.createElement('script');
   261   var script = document.createElement('script');
   257   script.type="text/javascript";
   262   script.type="text/javascript";
   258   script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
   263   script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
   259   head.appendChild(script);
   264   head.appendChild(script);