1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Delete type="text/javascript" from <script> as it is the default in HTML5

This commit is contained in:
Jakub Vrana
2018-01-11 14:10:46 +01:00
parent 741b76fbd4
commit dc85ba2d86
26 changed files with 50 additions and 51 deletions

View File

@@ -28,8 +28,8 @@ class AdminerTinymce {
}
}
?>
<script type="text/javascript" src="<?php echo h($this->path); ?>"></script>
<script type="text/javascript">
<script src="<?php echo h($this->path); ?>"></script>
<script>
tinyMCE.init({
mode: 'none',
theme: 'advanced',
@@ -68,7 +68,7 @@ tinyMCE.init({
function editInput($table, $field, $attrs, $value) {
if (preg_match("~text~", $field["type"]) && preg_match("~_html~", $field["field"])) {
return "<textarea$attrs id='fields-" . h($field["field"]) . "' rows='12' cols='50'>" . h($value) . "</textarea><script type='text/javascript'>
return "<textarea$attrs id='fields-" . h($field["field"]) . "' rows='12' cols='50'>" . h($value) . "</textarea><script>
tinyMCE.remove(tinyMCE.get('fields-" . js_escape($field["field"]) . "') || { });
tinyMCE.execCommand('mceAddControl', true, 'fields-" . js_escape($field["field"]) . "');
qs('#form').onsubmit = function () {