includes/clientside/static/editor.js
author Dan
Mon, 09 Jul 2007 22:01:27 -0400
changeset 57 b354deeaa4c4
parent 40 723bb7acf914
child 117 7cfdbb2fd17a
permissions -rw-r--r--
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions

// Javascript routines for the page editor

var initTinyMCE = function(e)
{
  if ( typeof(tinyMCE) == 'object' )
  {
    var options = {
      mode : "exact",
      elements : '',
      plugins : 'table',
      theme_advanced_resize_horizontal : false,
      theme_advanced_resizing : true,
      theme_advanced_toolbar_location : "top",
      theme_advanced_toolbar_align : "left",
      theme_advanced_buttons1_add : "fontselect,fontsizeselect",
      theme_advanced_buttons3_add_before : "tablecontrols,separator",
      theme_advanced_statusbar_location : 'bottom'
    }
    if ( !KILL_SWITCH )
    {
      tinyMCE.init(options);
    }
  }
}
addOnloadHook(initTinyMCE);