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
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1198,10 +1198,12 @@ export function LoadedRichMarkdownEditor({
1198
1198
}}
1199
1199
/>
1200
1200
{showPlaceholder&&placeholderHtml&&(
1201
-
// Instant read-only content while the collaborative doc seeds; the editor stays mounted-but-
1202
-
// hidden below so it renders the seeded doc before the swap. Same layout box → no reflow.
1201
+
// Instant read-only content while the collaborative doc seeds, swapped for the live editor
1202
+
// once ready. The `ProseMirror` class is load-bearing: it gives the placeholder the same base
1203
+
// text layout as the live editable (prosemirror-view sets `white-space: break-spaces` and
1204
+
// disables ligatures), so a line wraps identically and never re-wraps on the swap.
0 commit comments