1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-11-01 23:14:58 +03:00
Files
phpmyadmin/js/src/transformations/json_editor.js
Maurício Meneghini Fauth 2a4c58258b Use JS module to import jQuery
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-07-03 19:08:27 -03:00

19 lines
474 B
JavaScript

import $ from 'jquery';
/**
* JSON syntax highlighting transformation plugin
*
* @package PhpMyAdmin
*/
window.AJAX.registerOnload('transformations/json_editor.js', function () {
$('textarea.transform_json_editor').each(function () {
window.CodeMirror.fromTextArea(this, {
lineNumbers: true,
matchBrackets: true,
indentUnit: 4,
mode: 'application/json',
lineWrapping: true
});
});
});