phpmyadmin/resources/js/transformations/sql_editor.ts
Maurício Meneghini Fauth 01e4a87bbd
Move resources/js/src to resources/js
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-05-22 13:43:59 -03:00

15 lines
423 B
TypeScript

import $ from 'jquery';
import { AJAX } from '../modules/ajax.ts';
import { getSqlEditor } from '../modules/functions.ts';
/**
* SQL syntax highlighting transformation plugin js
*
* @package PhpMyAdmin
*/
AJAX.registerOnload('transformations/sql_editor.js', function () {
($('textarea.transform_sql_editor') as JQuery<HTMLTextAreaElement>).each(function () {
getSqlEditor($(this), {}, 'both');
});
});