Fix select text bug

This commit is contained in:
Barrca 2025-02-24 17:35:41 +01:00
parent c5a83110d4
commit a1cd524b15

View file

@ -148,6 +148,17 @@ class FloatingWidget extends WidgetType {
},
preventDefault: true,
},
{
key: "Mod-a",
run: (view) => {
const doc = view.state.doc;
view.dispatch({
selection: { anchor: 0, head: doc.length },
});
return true;
},
preventDefault: true,
},
]),
// 3) Enable slash-command autocompletion
slashCommandAutocompletion({