includes/clientside/static/editor.js
changeset 117 7cfdbb2fd17a
parent 57 b354deeaa4c4
child 335 67bd3121a12e
equal deleted inserted replaced
116:77c75179bb95 117:7cfdbb2fd17a
     1 // Javascript routines for the page editor
     1 // Javascript routines for the page editor
       
     2 
       
     3 var enano_tinymce_options = {
       
     4   mode : "exact",
       
     5   elements : '',
       
     6   plugins : 'table',
       
     7   theme_advanced_resize_horizontal : false,
       
     8   theme_advanced_resizing : true,
       
     9   theme_advanced_toolbar_location : "top",
       
    10   theme_advanced_toolbar_align : "left",
       
    11   theme_advanced_buttons1_add : "fontselect,fontsizeselect",
       
    12   theme_advanced_buttons3_add_before : "tablecontrols,separator",
       
    13   theme_advanced_statusbar_location : 'bottom'
       
    14 };
     2 
    15 
     3 var initTinyMCE = function(e)
    16 var initTinyMCE = function(e)
     4 {
    17 {
     5   if ( typeof(tinyMCE) == 'object' )
    18   if ( typeof(tinyMCE) == 'object' )
     6   {
    19   {
     7     var options = {
       
     8       mode : "exact",
       
     9       elements : '',
       
    10       plugins : 'table',
       
    11       theme_advanced_resize_horizontal : false,
       
    12       theme_advanced_resizing : true,
       
    13       theme_advanced_toolbar_location : "top",
       
    14       theme_advanced_toolbar_align : "left",
       
    15       theme_advanced_buttons1_add : "fontselect,fontsizeselect",
       
    16       theme_advanced_buttons3_add_before : "tablecontrols,separator",
       
    17       theme_advanced_statusbar_location : 'bottom'
       
    18     }
       
    19     if ( !KILL_SWITCH )
    20     if ( !KILL_SWITCH )
    20     {
    21     {
    21       tinyMCE.init(options);
    22       tinyMCE.init(enano_tinymce_options);
    22     }
    23     }
    23   }
    24   }
    24 }
    25 }
    25 addOnloadHook(initTinyMCE);
    26 addOnloadHook(initTinyMCE);
    26 
    27