mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
clean up {{ }} hint text, remove asterisks hint
This commit is contained in:
@ -283,9 +283,8 @@ const system_messages = {
|
|||||||
mes: [
|
mes: [
|
||||||
'Hi there! The following chat formatting commands are supported:',
|
'Hi there! The following chat formatting commands are supported:',
|
||||||
'<ol>',
|
'<ol>',
|
||||||
'<li><tt>*text*</tt> – format the actions that your character does</li>',
|
'<li><tt>{{text}}</tt> – sets a permanent behavioral bias for the AI</li>',
|
||||||
'<li><tt>{{text}}</tt> – set the behavioral bias for the AI character</li>',
|
'<li><tt>{{}}</tt> – removes any active character bias</li>',
|
||||||
'<li><tt>{{}}</tt> – cancel a previously set bias</li>',
|
|
||||||
'</ol>',
|
'</ol>',
|
||||||
].join('')
|
].join('')
|
||||||
},
|
},
|
||||||
@ -5326,16 +5325,16 @@ $(document).ready(function () {
|
|||||||
try {
|
try {
|
||||||
var edit_mes_id = $(this).closest(".mes").attr("mesid");
|
var edit_mes_id = $(this).closest(".mes").attr("mesid");
|
||||||
var text = chat[edit_mes_id]["mes"];
|
var text = chat[edit_mes_id]["mes"];
|
||||||
navigator.clipboard.writeText(text);
|
navigator.clipboard.writeText(text);
|
||||||
const copiedMsg = document.createElement("div");
|
const copiedMsg = document.createElement("div");
|
||||||
copiedMsg.classList.add('code-copied');
|
copiedMsg.classList.add('code-copied');
|
||||||
copiedMsg.innerText = "Copied!";
|
copiedMsg.innerText = "Copied!";
|
||||||
copiedMsg.style.top = `${event.clientY - 55}px`;
|
copiedMsg.style.top = `${event.clientY - 55}px`;
|
||||||
copiedMsg.style.left = `${event.clientX - 55}px`;
|
copiedMsg.style.left = `${event.clientX - 55}px`;
|
||||||
document.body.append(copiedMsg);
|
document.body.append(copiedMsg);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(copiedMsg);
|
document.body.removeChild(copiedMsg);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Failed to copy: ', err);
|
console.error('Failed to copy: ', err);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user