Skip to content

Commit

Permalink
fix: correct exports
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Aug 1, 2024
1 parent db572f6 commit 24f5c28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/editors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {

type UseEditorProps = EditorOptions

export const useArticleEdtor = ({
export const useArticleEditor = ({
extensions,
content,
...restProps
Expand All @@ -28,7 +28,7 @@ export const useArticleEdtor = ({
return editor
}

export const useCommentEdtor = ({
export const useCommentEditor = ({
extensions,
content,
...restProps
Expand All @@ -42,7 +42,7 @@ export const useCommentEdtor = ({
return editor
}

export const useMomentEdtor = ({
export const useMomentEditor = ({
extensions,
content,
...restProps
Expand All @@ -56,7 +56,7 @@ export const useMomentEdtor = ({
return editor
}

export const useCampaignEdtor = ({
export const useCampaignEditor = ({
extensions,
content,
...restProps
Expand Down

0 comments on commit 24f5c28

Please sign in to comment.