Skip to content

Commit

Permalink
Fix html editor
Browse files Browse the repository at this point in the history
  • Loading branch information
samchuk-vlad committed Apr 2, 2024
1 parent d240289 commit abea37b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/components/editor/tiptap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ export const useCreateEditor = (
content: htmlContent || content,
onUpdate: ({ editor }) => {
debouncedSaveDraft(editor.getHTML())
},
onBlur: ({ editor }) => {
onUpdate(editor.getHTML())
},
autofocus: true,
Expand Down
2 changes: 0 additions & 2 deletions src/components/posts/editor/FullEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const EditorCard = ({
markdownMode,
onChange,
saveBodyDraft,
form,
}: EditorCardProps) => {
const [fixedToolbar, setFixedToolbar] = useState(false)
const { isMobile } = useResponsiveSize()
Expand All @@ -69,7 +68,6 @@ const EditorCard = ({
}

const onChangeHtmlEditor = (text: string) => {
console.log('iudjfhgsuiydfgiuy', text)
const mdText = htmlToMd(text) || ''
onChange(mdText)
}
Expand Down
1 change: 0 additions & 1 deletion src/components/posts/editor/HtmlEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function HtmlEditor({
saveBodyDraft,
className,
showToolbar,
autoFocus,
}: HTMLEditorProps) {
const editor = useCreateEditor(onChange, value, saveBodyDraft)

Expand Down

0 comments on commit abea37b

Please sign in to comment.