mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added CDATA to Javascript
This commit is contained in:
parent
a4e2f9e9bb
commit
5e87b920e3
3 changed files with 8 additions and 4 deletions
|
@ -3694,7 +3694,8 @@ function use_html_editor($name='', $editorhidebuttons='', $id='') {
|
|||
if ($id === '') {
|
||||
$id = 'edit-'.$name;
|
||||
}
|
||||
echo '<script language="javascript" type="text/javascript" defer="defer">'."\n";
|
||||
echo "\n".'<script language="javascript" type="text/javascript" defer="defer">'."\n";
|
||||
echo '//<![CDATA['."\n";
|
||||
echo "$editor = new HTMLArea('$id');\n";
|
||||
echo "var config = $editor.config;\n";
|
||||
|
||||
|
@ -3705,6 +3706,7 @@ function use_html_editor($name='', $editorhidebuttons='', $id='') {
|
|||
} else {
|
||||
echo "\n$editor.generate();\n";
|
||||
}
|
||||
echo '//]]>'."\n";
|
||||
echo '</script>'."\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue