Permalink
Browse files

Fixed bug in use_html_editor(). HTMLArea is now displayed correctly e…

…ven when

$name is not supplied.
  • Loading branch information...
1 parent d9f5169 commit ace6341d83f0f7725445b9d85373e8482c5a08ba vyshane committed Mar 15, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -3100,7 +3100,7 @@ function use_html_editor($name='', $editorhidebuttons='') {
echo print_editor_config($editorhidebuttons);
if (empty($name)) {
- echo "\n".'HTMLArea.replaceAll(editor.config);'."\n";
+ echo "\nHTMLArea.replaceAll(edit_$name.config);\n";
} else {
echo "\nedit_$name.generate();\n";
}

0 comments on commit ace6341

Please sign in to comment.