mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 10:34:01 +02:00
Use script() for <script>
This commit is contained in:
@@ -55,9 +55,9 @@ class AdminerWymeditor {
|
||||
$lang = get_lang();
|
||||
$lang = ($lang == "zh" || $lang == "zh-tw" ? "zh_cn" : $lang);
|
||||
}
|
||||
return "<textarea$attrs id='fields-" . h($field["field"]) . "' rows='12' cols='50'>" . h($value) . "</textarea><script>
|
||||
return "<textarea$attrs id='fields-" . h($field["field"]) . "' rows='12' cols='50'>" . h($value) . "</textarea>" . script("
|
||||
jQuery('#fields-" . js_escape($field["field"]) . "').wymeditor({ updateSelector: '#form [type=\"submit\"]', lang: '$lang'" . ($this->options ? ", $this->options" : "") . " });
|
||||
</script>";
|
||||
");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user