1 <form method=
"post" action=
"editor.php">
2 <input type=
"hidden" name=
"sesskey" value=
"<?php echo $USER->sesskey ?>" />
3 <input type
="hidden" name
="tab" value
="<?php p($currentpage) ?>" />
4 <table border
="0" cellpadding
="4" cellspacing
="2">
6 <td align
="right" valign
="top">htmleditor
:</td
>
10 $options[0] = get_string("allownot");
11 $options[1] = get_string("allow");
12 choose_from_menu ($options, "htmleditor", $CFG->htmleditor
, "", "", "");
16 <?php print_string('confightmleditor', 'admin') ?>
19 <?php if ( $currenttab == 'htmlarea' ) { ?>
21 <td align=
"right" valign=
"top">editorbackgroundcolor:
</td>
22 <td valign=
"top"><input type=
"text" name=
"backgroundcolor" size=
"10" value=
"<?php print($CFG->editorbackgroundcolor);?>" /></td
>
23 <td valign
="top"><?php
print_string("edhelpbgcolor");?></td>
26 <td align=
"right" valign=
"top">editorfontfamily:
</td>
27 <td valign=
"top"><input type=
"text" name=
"fontfamily" size=
"30" value=
"<?php print($CFG->editorfontfamily);?>" /></td
>
28 <td valign
="top"><?php
print_string("edhelpfontfamily");?></td>
31 <td align=
"right" valign=
"top">editorfontsize:
</td>
32 <td valign=
"top"><input type=
"text" name=
"fontsize" size=
"10" value=
"<?php print($CFG->editorfontsize);?>" /></td
>
33 <td valign
="top"><?php
print_string("edhelpfontsize");?></td>
36 <td align=
"right" valign=
"top">editorkillword:
</td>
37 <td valign=
"top"><select name=
"killword">
38 <option value=
"1"<?php print(!$CFG->editorkillword
)?
"":" selected=\"selected\"";?>><?php print_string(
"yes");
?></option>
39 <option value=
"0"<?php print(!$CFG->editorkillword
)?
" selected=\"selected\"":"";?>><?php print_string(
"no");
?></option>
41 <td valign=
"top"><?php print_string("edhelpcleanword");?></td>
44 <td align=
"right" valign=
"top">aspellpath:
</td>
45 <td valign=
"top"><input onchange=
"change_state()" id=
"aspellpath" type=
"text" name=
"aspellpath" size=
"25" value=
"<?php print($CFG->aspellpath);?>" /></td
>
46 <td valign
="top"><?php
print_string("edhelpaspellpath");?></td>
49 <td align=
"right" valign=
"top">editorspelling:
</td>
50 <td valign=
"top"><select onchange=
"change_state()" id=
"spelling" name=
"spelling"<?php
51 if (empty($CFG->aspellpath
)) {
52 echo " disabled=\"disabled\"";
53 $CFG->editorspelling
= false;
56 <option value=
"1"<?php print(!$CFG->editorspelling
)?
"":" selected=\"selected\"";?>><?php print_string(
"yes");
?></option>
57 <option value=
"0"<?php print(!$CFG->editorspelling
)?
" selected=\"selected\"":"";?>><?php print_string(
"no");
?></option>
59 <select id=
"dictionary" name=
"dictionary"<?php
60 if (empty($CFG->aspellpath
)) {
61 echo " disabled=\"disabled\"";
62 $CFG->editordictionary
= false;
66 if (is_array($dicts)) {
67 foreach ($dicts as $dict) {
68 echo "<option value=\"$dict\"";
69 if (!empty($CFG->editordictionary
)) {
70 print ($CFG->editordictionary
!= $dict) ?
"" : " selected=\"selected\"";
72 echo ">$dict</option>\n";
74 } else if (is_string($dicts)) {
75 echo '<option value="">'. $dicts .'</option>' . "\n";
80 <td valign=
"top"><?php print_string("edhelpenablespelling");?></td>
82 <tr><td colspan=
"3"><br /><?php print_string("edhelpfontlist");?></td></tr>
84 if(is_array($fontlist)) {
85 foreach($fontlist as $fontkey => $fontvalue) {
89 <td colspan=
"2"><input type=
"text" name=
"fontname[]" size=
"15" value=
"<?php print($fontkey);?>">
90 <input type
="text" name
="fontnamevalue[]" size
="30" value
="<?php print($fontvalue);?>" /></td
>
98 <td colspan=
"2"><input type=
"text" name=
"fontname[]" size=
"15" value=
"" />
99 <input type=
"text" name=
"fontnamevalue[]" size=
"30" value=
"" /></td>
102 <td valign=
"top" align=
"right">editorhidebuttons:
</td>
106 if (!empty($CFG->editorhidebuttons
)) {
107 $buttons = explode(chr(32), $CFG->editorhidebuttons
);
110 <table border=
"0" cellpadding=
"2" cellspacing=
"1">
112 <td colspan=
"12"><input type=
"checkbox" name=
"buttons[fontname]"<?php print(in_array("fontname", $buttons)) ?
" checked=\"checked\"": "";?> /> <?php print_string(
"fontname",
"editor");
?>
113 <input type=
"checkbox" name=
"buttons[fontsize]"<?php print(in_array("fontsize", $buttons)) ?
" checked=\"checked\"": "";?> /> <?php print_string(
"fontsize",
"editor");
?>
114 <input type=
"checkbox" name=
"buttons[formatblock]"<?php print(in_array("formatblock", $buttons)) ?
" checked=\"checked\"": "";?> /> <?php print_string(
"formatblock",
"editor");
?></td>
117 <td><img src=
"<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_bold.gif" width
="18" height
="18" alt
="<?php print_string("bold
","editor
");?>" title
="<?php print_string("bold
","editor
");?>" /></td
>
118 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_italic.gif" width
="18" height
="18" alt
="<?php print_string("italic
","editor
");?>" title
="<?php print_string("italic
","editor
");?>" /></td
>
119 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_underline.gif" width
="18" height
="18" alt
="<?php print_string("underline
","editor
");?>" title
="<?php print_string("underline
","editor
");?>" /></td
>
120 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_strike.gif" width
="18" height
="18" alt
="<?php print_string("strikethrough
","editor
");?>" title
="<?php print_string("strikethrough
","editor
");?>" /></td
>
121 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_sub.gif" width
="18" height
="18" alt
="<?php print_string("subscript
","editor
");?>" title
="<?php print_string("subscript
","editor
");?>" /></td
>
122 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_sup.gif" width
="18" height
="18" alt
="<?php print_string("superscript
","editor
");?>" title
="<?php print_string("superscript
","editor
");?>" /></td
>
123 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_copy.gif" width
="18" height
="18" alt
="<?php print_string("copy
","editor
");?>" title
="<?php print_string("copy
","editor
");?>" /></td
>
124 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_cut.gif" width
="18" height
="18" alt
="<?php print_string("cut
","editor
");?>" title
="<?php print_string("cut
","editor
");?>" /></td
>
125 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_paste.gif" width
="18" height
="18" alt
="<?php print_string("paste
","editor
");?>" title
="<?php print_string("paste
","editor
");?>" /></td
>
126 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_wordclean.gif" width
="18" height
="18" alt
="<?php print_string("wordclean
","editor
");?>" title
="<?php print_string("wordclean
","editor
");?>" /></td
>
127 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_undo.gif" width
="18" height
="18" alt
="<?php print_string("undo
","editor
");?>" title
="<?php print_string("undo
","editor
");?>" /></td
>
128 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_redo.gif" width
="18" height
="18" alt
="<?php print_string("redo
","editor
");?>" title
="<?php print_string("redo
","editor
");?>" /></td
>
131 <td
><input type
="checkbox" name
="buttons[bold]"<?php
print(in_array("bold", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
132 <td><input type=
"checkbox" name=
"buttons[italic]"<?php print(in_array("italic", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
133 <td><input type=
"checkbox" name=
"buttons[underline]"<?php print(in_array("underline", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
134 <td><input type=
"checkbox" name=
"buttons[strikethrough]"<?php print(in_array("strikethrough", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
135 <td><input type=
"checkbox" name=
"buttons[subscript]"<?php print(in_array("subscript", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
136 <td><input type=
"checkbox" name=
"buttons[superscript]"<?php print(in_array("superscript", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
137 <td><input type=
"checkbox" name=
"buttons[copy]"<?php print(in_array("copy", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
138 <td><input type=
"checkbox" name=
"buttons[cut]"<?php print(in_array("cut", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
139 <td><input type=
"checkbox" name=
"buttons[paste]"<?php print(in_array("paste", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
140 <td><input type=
"checkbox" name=
"buttons[clean]"<?php print(in_array("clean", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
141 <td><input type=
"checkbox" name=
"buttons[undo]"<?php print(in_array("undo", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
142 <td><input type=
"checkbox" name=
"buttons[redo]"<?php print(in_array("redo", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
145 <td><img src=
"<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_left.gif" width
="18" height
="18" alt
="<?php print_string("justifyleft
","editor
");?>" title
="<?php print_string("justifyleft
","editor
");?>" /></td
>
146 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_center.gif" width
="18" height
="18" alt
="<?php print_string("justifycenter
","editor
");?>" title
="<?php print_string("justifycenter
","editor
");?>" /></td
>
147 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_right.gif" width
="18" height
="18" alt
="<?php print_string("justifyright
","editor
");?>" title
="<?php print_string("justifyright
","editor
");?>" /></td
>
148 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_justify.gif" width
="18" height
="18" alt
="<?php print_string("justifyfull
","editor
");?>" title
="<?php print_string("justifyfull
","editor
");?>" /></td
>
149 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_left_to_right.gif" width
="18" height
="18" alt
="<?php print_string("lefttoright
","editor
");?>" title
="<?php print_string("lefttoright
","editor
");?>" /></td
>
150 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_right_to_left.gif" width
="18" height
="18" alt
="<?php print_string("righttoleft
","editor
");?>" title
="<?php print_string("righttoleft
","editor
");?>" /></td
>
151 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_list_num.gif" width
="18" height
="18" alt
="<?php print_string("orderedlist
","editor
");?>" title
="<?php print_string("orderedlist
","editor
");?>" /></td
>
152 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_list_bullet.gif" width
="18" height
="18" alt
="<?php print_string("unorderedlist
","editor
");?>" title
="<?php print_string("unorderedlist
","editor
");?>" /></td
>
153 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_indent_less.gif" width
="18" height
="18" alt
="<?php print_string("outdent
","editor
");?>" title
="<?php print_string("outdent
","editor
");?>" /></td
>
154 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_indent_more.gif" width
="18" height
="18" alt
="<?php print_string("indent
","editor
");?>" title
="<?php print_string("indent
","editor
");?>" /></td
>
155 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_color_fg.gif" width
="18" height
="18" alt
="<?php print_string("forecolor
","editor
");?>" title
="<?php print_string("forecolor
","editor
");?>" /></td
>
156 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_color_bg.gif" width
="18" height
="18" alt
="<?php print_string("hilitecolor
","editor
");?>" title
="<?php print_string("hilitecolor
","editor
");?>" /></td
>
159 <td
><input type
="checkbox" name
="buttons[justifyleft]"<?php
print(in_array("justifyleft", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
160 <td><input type=
"checkbox" name=
"buttons[justifycenter]"<?php print(in_array("justifycenter", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
161 <td><input type=
"checkbox" name=
"buttons[justifyright]"<?php print(in_array("justifyright", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
162 <td><input type=
"checkbox" name=
"buttons[justifyfull]"<?php print(in_array("justifyfull", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
163 <td><input type=
"checkbox" name=
"buttons[lefttoright]"<?php print(in_array("lefttoright", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
164 <td><input type=
"checkbox" name=
"buttons[righttoleft]"<?php print(in_array("righttoleft", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
165 <td><input type=
"checkbox" name=
"buttons[insertorderedlist]"<?php print(in_array("insertorderedlist", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
166 <td><input type=
"checkbox" name=
"buttons[insertunorderedlist]"<?php print(in_array("insertunorderedlist", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
167 <td><input type=
"checkbox" name=
"buttons[outdent]"<?php print(in_array("outdent", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
168 <td><input type=
"checkbox" name=
"buttons[indent]"<?php print(in_array("indent", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
169 <td><input type=
"checkbox" name=
"buttons[forecolor]"<?php print(in_array("forecolor", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
170 <td><input type=
"checkbox" name=
"buttons[hilitecolor]"<?php print(in_array("hilitecolor", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
173 <td><img src=
"<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_hr.gif" width
="18" height
="18" alt
="<?php print_string("horizontalrule
","editor
");?>" title
="<?php print_string("horizontalrule
","editor
");?>" /></td
>
174 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_anchor.gif" width
="18" height
="18" alt
="<?php print_string("createanchor
","editor
");?>" title
="<?php print_string("createanchor
","editor
");?>" /></td
>
175 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_link.gif" width
="18" height
="18" alt
="<?php print_string("insertlink
","editor
");?>" title
="<?php print_string("insertlink
","editor
");?>" /></td
>
176 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_unlink.gif" width
="18" height
="18" alt
="<?php print_string("removelink
","editor
");?>" title
="<?php print_string("removelink
","editor
");?>" /></td
>
177 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_image.gif" width
="18" height
="18" alt
="<?php print_string("insertimage
","editor
");?>" title
="<?php print_string("insertimage
","editor
");?>" /></td
>
178 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/insert_table.gif" width
="18" height
="18" alt
="<?php print_string("inserttable
","editor
");?>" title
="<?php print_string("inserttable
","editor
");?>" /></td
>
179 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/em.icon.smile.gif" width
="18" height
="18" alt
="<?php print_string("insertsmile
","editor
");?>" title
="<?php print_string("insertsmile
","editor
");?>" /></td
>
180 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/icon_ins_char.gif" width
="18" height
="18" alt
="<?php print_string("insertchar
","editor
");?>" title
="<?php print_string("insertchar
","editor
");?>" /></td
>
181 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/spell-check.gif" width
="18" height
="18" alt
="<?php print_string("spellcheck
","editor
");?>" title
="<?php print_string("spellcheck
","editor
");?>" /></td
>
182 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_html.gif" width
="18" height
="18" alt
="<?php print_string("htmlmode
","editor
");?>" title
="<?php print_string("htmlmode
","editor
");?>" /></td
>
183 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/fullscreen_maximize.gif" width
="18" height
="18" alt
="<?php print_string("popupeditor
","editor
");?>" title
="<?php print_string("popupeditor
","editor
");?>" /></td
>
184 <td
><img src
="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_replace.gif" width
="18" height
="18" alt
="<?php print_string("popupeditor
","editor
");?>" title
="<?php print_string("searchandreplace
","editor
");?>" /></td
>
187 <td
><input type
="checkbox" name
="buttons[inserthorizontalrule]"<?php
print(in_array("inserthorizontalrule", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
188 <td><input type=
"checkbox" name=
"buttons[createanchor]"<?php print(in_array("createanchor", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
189 <td><input type=
"checkbox" name=
"buttons[createlink]"<?php print(in_array("createlink", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
190 <td><input type=
"checkbox" name=
"buttons[unlink]"<?php print(in_array("unlink", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
191 <td><input type=
"checkbox" name=
"buttons[insertimage]"<?php print(in_array("insertimage", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
192 <td><input type=
"checkbox" name=
"buttons[inserttable]"<?php print(in_array("inserttable", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
193 <td><input type=
"checkbox" name=
"buttons[insertsmile]"<?php print(in_array("insertsmile", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
194 <td><input type=
"checkbox" name=
"buttons[insertchar]"<?php print(in_array("insertchar", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
195 <td><input type=
"checkbox" name=
"buttons[spellcheck]"<?php print(in_array("spellcheck", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
196 <td><input type=
"checkbox" name=
"buttons[htmlmode]"<?php print(in_array("htmlmode", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
197 <td><input type=
"checkbox" name=
"buttons[popupeditor]"<?php print(in_array("popupeditor", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
198 <td><input type=
"checkbox" name=
"buttons[search_replace]"<?php print(in_array("search_replace", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
201 <td><img src=
"<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_nolink.gif" width
="18" height
="18" alt
="<?php print_string("horizontalrule
","editor
");?>" title
="<?php print_string("nolink
","editor
");?>" /></td
>
215 <td
><input type
="checkbox" name
="buttons[nolink]"<?php
print(in_array("nolink", $buttons)) ?
" checked=\"checked\"" : "" ;?> /></td>
233 else if ( $currenttab == 'tinymce' ) {
236 <td>tinymcetheme:
</td>
238 $options = array('advanced' => 'Advanced','simple' => 'Simple');
239 choose_from_menu ($options, "tinymcetheme", $CFG->tinymcetheme
, "", "", "");
244 <td valign=
"top">tinymceplugins:
</td>
245 <td nowrap=
"nowrap"><?php
246 $pluginsdir = $CFG->libdir
.'/editor/tinymce/jscripts/tiny_mce/plugins';
247 $plugins = editor_get_tiny_plugins();
248 $pluginsinuse = explode(",", $CFG->tinymceplugins
);
252 echo '<table border="0" cellpadding="2">';
253 foreach ( $plugins as $plugin ) {
258 echo '<td><input type="checkbox" name="tinymceplugins[]" value="'. s($plugin) .'"';
259 if ( in_array($plugin, $pluginsinuse) ) {
260 echo ' checked="checked"';
262 echo ' /> '. $plugin .'</td>'."\n";
274 <td>tinymcecontentcss:
</td>
275 <td><input type=
"text" name=
"tinymcecontentcss" value=
"<?php
276 !empty($CFG->tinymcecontentcss) ? p($CFG->tinymcecontentcss) : ''; ?>" size
="40" /></td
>
280 <td
>tinymcepopupcss
:</td
>
281 <td
><input type
="text" name
="tinymcepopupcss" value
="<?php
282 !empty($CFG->tinymcepopupcss) ? p($CFG->tinymcepopupcss) : ''; ?>" size
="40" /></td
>
286 <td
>tinymceeditorcss
:</td
>
287 <td
><input type
="text" name
="tinymceeditorcss" value
="<?php
288 !empty($CFG->tinymceeditorcss) ? p($CFG->tinymceeditorcss) : ''; ?>" size
="40" /></td
>
295 <td colspan=
"3" align=
"center"><input type=
"submit" value=
"<?php print_string("savechanges
");?>" /></td
>
300 <form method
="post" action
="<?php print($GLOBALS['ME']);?>">
301 <input type
="hidden" name
="sesskey" value
="<?php echo $USER->sesskey ?>" />
302 <input type
="hidden" name
="tab" value
="<?php p($currentpage) ?>" />
304 <input type
="submit" name
="resettodefaults" value
="<?php print_string('editorresettodefaults') ?>" />
307 <script language
="javascript" type
="text/javascript">
310 function change_state () {
312 var choice
= document
.forms
[0].spelling
;
313 var speller
= choice
.options
[choice
.selectedIndex
].value
;
314 var spellpath
= document
.forms
[0].aspellpath
.value
;
316 if (spellpath
== '') {
317 document
.forms
[0].spelling
.disabled
= true;
319 document
.forms
[0].spelling
.disabled
= false;
323 document
.forms
[0].dictionary
.disabled
= true;
325 document
.forms
[0].dictionary
.disabled
= false;
329 document
.onload
= change_state();