mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
show source in message label
This commit is contained in:
@ -828,6 +828,7 @@ export class QuickReply {
|
|||||||
// this.editorMessage.value = closure.fullText;
|
// this.editorMessage.value = closure.fullText;
|
||||||
// this.editorMessage.dispatchEvent(new Event('input', { bubbles:true }));
|
// this.editorMessage.dispatchEvent(new Event('input', { bubbles:true }));
|
||||||
syntax.innerHTML = hljs.highlight(`${closure.fullText}${closure.fullText.slice(-1) == '\n' ? ' ' : ''}`, { language:'stscript', ignoreIllegals:true })?.value;
|
syntax.innerHTML = hljs.highlight(`${closure.fullText}${closure.fullText.slice(-1) == '\n' ? ' ' : ''}`, { language:'stscript', ignoreIllegals:true })?.value;
|
||||||
|
this.editorDom.querySelector('label[for="qr--modal-message"]').textContent = closure.source;
|
||||||
const source = closure.source;
|
const source = closure.source;
|
||||||
this.editorDebugState.innerHTML = '';
|
this.editorDebugState.innerHTML = '';
|
||||||
let ci = -1;
|
let ci = -1;
|
||||||
@ -1226,6 +1227,7 @@ export class QuickReply {
|
|||||||
if (noSyntax) {
|
if (noSyntax) {
|
||||||
this.editorDom.querySelector('#qr--modal-messageHolder').classList.add('qr--noSyntax');
|
this.editorDom.querySelector('#qr--modal-messageHolder').classList.add('qr--noSyntax');
|
||||||
}
|
}
|
||||||
|
this.editorDom.querySelector('label[for="qr--modal-message"]').textContent = 'Message / Command: ';
|
||||||
this.editorMessage.value = oText;
|
this.editorMessage.value = oText;
|
||||||
this.editorMessage.dispatchEvent(new Event('input', { bubbles:true }));
|
this.editorMessage.dispatchEvent(new Event('input', { bubbles:true }));
|
||||||
this.editorExecutePromise = null;
|
this.editorExecutePromise = null;
|
||||||
|
Reference in New Issue
Block a user