Initial commit
This commit is contained in:
18
pma/js/dist/transformations/json_editor.js
vendored
Normal file
18
pma/js/dist/transformations/json_editor.js
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* JSON syntax highlighting transformation plugin
|
||||
*
|
||||
* @package PhpMyAdmin
|
||||
*/
|
||||
AJAX.registerOnload('transformations/json_editor.js', function () {
|
||||
$('textarea.transform_json_editor').each(function () {
|
||||
CodeMirror.fromTextArea(this, {
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentUnit: 4,
|
||||
mode: 'application/json',
|
||||
lineWrapping: true
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user