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