Yuki Takei пре 2 година
родитељ
комит
455ecd525b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/editor/src/components/playground/PlaygroundController.tsx

+ 1 - 1
packages/editor/src/components/playground/PlaygroundController.tsx

@@ -14,7 +14,7 @@ export const PlaygroundController = (): JSX.Element => {
     states.view?.dispatch({
       changes: {
         from: 0,
-        to: states.state?.doc.toString().length,
+        to: states.view.state.doc.toString().length,
         insert: '# Header\n\n- foo\n-bar\n',
       },
     });