Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
umodoc committed Sep 21, 2024
1 parent 1e766d4 commit 59c5b00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extensions/placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ export default Extension.create({
if (!editor.isEmpty || state.doc.content.size > 4) {
return false
}
const { content } = editor.getJSON()
// @ts-ignore
return chain().setContent(content[0]).focus(3).run()
const content = editor.getJSON()
return chain().setContent(content).focus(3).run()
},
}
},
Expand Down

0 comments on commit 59c5b00

Please sign in to comment.