mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-23 23:35:57 +02:00
Keep textarea selection visible when opening AI menu in source mode
This commit is contained in:
@@ -4906,6 +4906,10 @@
|
||||
aiSelectionTo = end;
|
||||
aiSelectedText = selected;
|
||||
aiWholeNote = false;
|
||||
requestAnimationFrame(() => {
|
||||
sourceElement?.focus();
|
||||
sourceElement?.setSelectionRange(start, end);
|
||||
});
|
||||
} else {
|
||||
const fullMd = restoreTitleH1(sourceContent);
|
||||
if (!fullMd.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user