enh: follow up prompts behaviour

This commit is contained in:
Timothy Jaeryang Baek
2025-07-18 17:49:24 +04:00
parent 5e4e1cf662
commit c414f0c3ce
7 changed files with 86 additions and 2 deletions
@@ -655,6 +655,10 @@
export const setText = (text: string) => {
if (!editor) return;
text = text.replaceAll('\n\n', '\n');
// reset the editor content
editor.commands.clearContent();
const { state, view } = editor;
const { schema, tr } = state;