diff --git a/src/importMarkdownToLexical.ts b/src/importMarkdownToLexical.ts index 8e6a4ed5..acc771fe 100644 --- a/src/importMarkdownToLexical.ts +++ b/src/importMarkdownToLexical.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ -import { ElementNode, LexicalNode, RootNode as LexicalRootNode } from 'lexical' +import { ElementNode, LexicalNode } from 'lexical' import * as Mdast from 'mdast' import { fromMarkdown, type Options } from 'mdast-util-from-markdown' import { toMarkdown } from 'mdast-util-to-markdown' diff --git a/src/plugins/core/index.ts b/src/plugins/core/index.ts index 7aaa13e0..09253941 100644 --- a/src/plugins/core/index.ts +++ b/src/plugins/core/index.ts @@ -827,7 +827,12 @@ export const corePlugin = realmPlugin<{ LexicalGenericHTMLVisitor ], - [addComposerChild$]: SharedHistoryPlugin + [addComposerChild$]: SharedHistoryPlugin, + [contentEditableClassName$]: params?.contentEditableClassName, + [toMarkdownOptions$]: params?.toMarkdownOptions, + [autoFocus$]: params?.autoFocus, + [placeholder$]: params?.placeholder, + [readOnly$]: params?.readOnly }) // Use the JSX extension to parse HTML diff --git a/src/plugins/image/index.ts b/src/plugins/image/index.ts index ace11320..4efd3a53 100644 --- a/src/plugins/image/index.ts +++ b/src/plugins/image/index.ts @@ -161,7 +161,6 @@ export const imageDialogState$ = Cell { const theUploadHandler = r.getValue(imageUploadHandler$) - console.log('theUploadHandler', theUploadHandler) return mergeRegister( editor?.registerCommand( INSERT_IMAGE_COMMAND,