Skip to content

Commit 4475907

Browse files
committed
fix editor init
1 parent 6a1b153 commit 4475907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/editor/src/lib/Editor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
}
109109
110110
state = EditorState.create({
111-
doc: '\n',
111+
doc: file.contents,
112112
extensions: [
113113
...extensions,
114114
...(lang || []),

0 commit comments

Comments
 (0)