You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-11-01 23:14:58 +03:00
19 lines
474 B
JavaScript
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
|
|
});
|
|
});
|
|
});
|