You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 66938dd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1350,15 +1350,11 @@ export function LoadedRichMarkdownEditor({
1350
1350
// load-bearing and runs on every settle even when the body is unchanged — setContent maps a
1351
1351
// pre-existing selection onto the new doc, so a prior select-all survives as "select everything",
1352
1352
// permanently painting every divider/image with the rich-leaf-in-selection decoration (keymap.ts)
1353
-
// until the user clicks away. setTextSelection (not .focus()) never steals DOM focus. A caret is
1354
-
// already collapsed: moving it to the end would only take away where the reader just clicked,
1355
-
// since an editable editor can take a click before its first settle lands.
1353
+
// until the user clicks away. setTextSelection (not .focus()) never steals DOM focus.
0 commit comments