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;
|
aiSelectionTo = end;
|
||||||
aiSelectedText = selected;
|
aiSelectedText = selected;
|
||||||
aiWholeNote = false;
|
aiWholeNote = false;
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
sourceElement?.focus();
|
||||||
|
sourceElement?.setSelectionRange(start, end);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
const fullMd = restoreTitleH1(sourceContent);
|
const fullMd = restoreTitleH1(sourceContent);
|
||||||
if (!fullMd.trim()) {
|
if (!fullMd.trim()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user