Skip to content

Commit

Permalink
README: describe editor mount point
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed May 24, 2024
1 parent f70906d commit 0ecdb10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let editorConfig = {
let state = EditorState.create(editorConfig)


const view = new EditorView(editorRoot.current, {
const view = new EditorView(<whatever DOM element you are rendering to>, {
state,
dispatchTransaction: (tx: Transaction) => {
// Here we intercept the transaction
Expand Down

0 comments on commit 0ecdb10

Please sign in to comment.