Skip to content

Commit

Permalink
minor: set the correct editable state at the time of creation
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Nov 28, 2023
1 parent d6ea424 commit c76072a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/svelte-lexical/src/core/Composer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@
nodes,
onError,
editorState: initialEditorState,
editable,
} = initialConfig;
const editor = createEditor({
editable: false,
editable,
namespace,
nodes,
onError: (error) => onError(error, editor),
Expand Down

0 comments on commit c76072a

Please sign in to comment.