From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- srcs/phpmyadmin/js/transformations/xml_editor.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcs/phpmyadmin/js/transformations/xml_editor.js (limited to 'srcs/phpmyadmin/js/transformations/xml_editor.js') diff --git a/srcs/phpmyadmin/js/transformations/xml_editor.js b/srcs/phpmyadmin/js/transformations/xml_editor.js new file mode 100644 index 0000000..7d2533d --- /dev/null +++ b/srcs/phpmyadmin/js/transformations/xml_editor.js @@ -0,0 +1,16 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * XML editor plugin + * + * @package PhpMyAdmin + */ +AJAX.registerOnload('transformations/xml_editor.js', function () { + $('textarea.transform_xml_editor').each(function () { + CodeMirror.fromTextArea(this, { + lineNumbers: true, + indentUnit: 4, + mode: 'application/xml', + lineWrapping: true + }); + }); +}); -- cgit