Preserve line breaks in prompt clipboard text

This commit is contained in:
NineKey
2026-09-14 23:39:58 +08:00
parent 82baf26dcf
commit e17f8c0768
+1 -1
View File
@@ -844,7 +844,7 @@ app.registerExtension({
}
fragment.querySelectorAll(".dynamic-tag-chip").forEach(chip =>
chip.replaceWith(document.createTextNode("@{" + tagKey(chip.dataset.folder, chip.dataset.file) + "}")));
return withoutCaretAnchors(fragment.textContent);
return composerTextFrom(fragment);
};
const pasteTextIntoComposer = (pasted, selectInserted = false) => {
const selection = window.getSelection();