Fixed bug in use_html_editor() that prevented HTMLArea display if $name is not

provided.
This commit is contained in:
vyshane 2006-03-15 08:30:03 +00:00
parent 6d74edf770
commit 80743e2a5b

View file

@ -3226,7 +3226,7 @@ function use_html_editor($name='', $editorhidebuttons='') {
echo print_editor_config($editorhidebuttons); echo print_editor_config($editorhidebuttons);
if (empty($name)) { if (empty($name)) {
echo "\n".'HTMLArea.replaceAll(editor.config);'."\n"; echo "\nHTMLArea.replaceAll(edit_$name.config);\n";
} else { } else {
echo "\nedit_$name.generate();\n"; echo "\nedit_$name.generate();\n";
} }