Skip to content

Commit

Permalink
Return editor instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 19, 2024
1 parent 0b558e1 commit 72ab812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import extensions from "./extensions"
export { extensions }

export function createEditor (element: HTMLElement, state: EditorStateConfig = {}) {
new EditorView({
return new EditorView({
parent: element,
state: EditorState.create({
extensions,
Expand Down

0 comments on commit 72ab812

Please sign in to comment.