author | Dan |
Tue, 10 Jul 2007 00:40:52 -0400 | |
changeset 58 | 8f532d8ab5f5 |
parent 57 | b354deeaa4c4 |
child 117 | 7cfdbb2fd17a |
permissions | -rw-r--r-- |
1 | 1 |
// Javascript routines for the page editor |
2 |
||
40
723bb7acf914
Fixed a lot of bugs with Safari and Konqueror; improved Opera compatibility
Dan
parents:
1
diff
changeset
|
3 |
var initTinyMCE = function(e) |
1 | 4 |
{ |
5 |
if ( typeof(tinyMCE) == 'object' ) |
|
6 |
{ |
|
40
723bb7acf914
Fixed a lot of bugs with Safari and Konqueror; improved Opera compatibility
Dan
parents:
1
diff
changeset
|
7 |
var options = { |
1 | 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' |
|
40
723bb7acf914
Fixed a lot of bugs with Safari and Konqueror; improved Opera compatibility
Dan
parents:
1
diff
changeset
|
18 |
} |
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
40
diff
changeset
|
19 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
40
diff
changeset
|
20 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
40
diff
changeset
|
21 |
tinyMCE.init(options); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
40
diff
changeset
|
22 |
} |
1 | 23 |
} |
24 |
} |
|
25 |
addOnloadHook(initTinyMCE); |
|
26 |