diff --git a/readme.md b/readme.md index 6b5cce5..60c86ed 100644 --- a/readme.md +++ b/readme.md @@ -26,12 +26,12 @@ The editor core, built with [TipTap](https://tiptap.dev) & [ProseMirror](https:/ ```tsx import { EditorContent, - useArticleEdtor, + useArticleEditor, useCommentEditor, } from '@matters/matters-editor' const Editor = () => { - const editor = useArticleEdtor({ + const editor = useArticleEditor({ editable: true, placeholder: 'Write your article here...', content: '', // initial content diff --git a/src/editors/index.ts b/src/editors/index.ts index 28cf46a..b4ab3cf 100644 --- a/src/editors/index.ts +++ b/src/editors/index.ts @@ -14,7 +14,7 @@ import { type UseEditorProps = EditorOptions -export const useArticleEdtor = ({ +export const useArticleEditor = ({ extensions, content, ...restProps @@ -28,7 +28,7 @@ export const useArticleEdtor = ({ return editor } -export const useCommentEdtor = ({ +export const useCommentEditor = ({ extensions, content, ...restProps @@ -42,7 +42,7 @@ export const useCommentEdtor = ({ return editor } -export const useMomentEdtor = ({ +export const useMomentEditor = ({ extensions, content, ...restProps @@ -56,7 +56,7 @@ export const useMomentEdtor = ({ return editor } -export const useCampaignEdtor = ({ +export const useCampaignEditor = ({ extensions, content, ...restProps