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:
@@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user