1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 06:37:33 +02:00

AdminerSqlGemini: Make work with CodeMirror

This commit is contained in:
Jakub Vrana
2025-03-27 07:22:51 +01:00
parent 8f2a829b2e
commit 806aa51f48

View File

@@ -60,8 +60,16 @@ const geminiButton = qsl('input');
function setSqlareaValue(value) {
qs('textarea.sqlarea').value = value;
qs('pre.sqlarea').textContent = value;
qs('pre.sqlarea').oninput(); // syntax highlighting
const jushPre = qs('pre.sqlarea');
if (jushPre) {
jushPre.textContent = value;
jushPre.oninput(); // syntax highlighting
}
const cmPre = qs('.CodeMirror');
if (cmPre) {
cmPre.CodeMirror.setValue(value);
cmPre.CodeMirror.refresh();
}
}
geminiButton.onclick = () => {