mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed bug in use_html_editor() that prevented HTMLArea display if $name is not
provided.
This commit is contained in:
parent
6d74edf770
commit
80743e2a5b
1 changed files with 3 additions and 3 deletions
|
@ -3222,11 +3222,11 @@ function use_html_editor($name='', $editorhidebuttons='') {
|
|||
echo '<script language="javascript" type="text/javascript" defer="defer">'."\n";
|
||||
echo "edit_$name = new HTMLArea('edit-$name');\n";
|
||||
echo "var config = edit_$name.config;\n";
|
||||
|
||||
|
||||
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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue