"use client"; import type { Editor, JSONContent } from "@/components/kibo-ui/editor"; import { EditorBubbleMenu, EditorCharacterCount, EditorClearFormatting, EditorFloatingMenu, EditorFormatBold, EditorFormatCode, EditorFormatItalic, EditorFormatStrike, EditorFormatSubscript, EditorFormatSuperscript, EditorFormatUnderline, EditorLinkSelector, EditorNodeBulletList, EditorNodeCode, EditorNodeHeading1, EditorNodeHeading2, EditorNodeHeading3, EditorNodeOrderedList, EditorNodeQuote, EditorNodeTable, EditorNodeTaskList, EditorNodeText, EditorProvider, EditorSelector, EditorTableColumnAfter, EditorTableColumnBefore, EditorTableColumnDelete, EditorTableColumnMenu, EditorTableDelete, EditorTableFix, EditorTableGlobalMenu, EditorTableHeaderColumnToggle, EditorTableHeaderRowToggle, EditorTableMenu, EditorTableMergeCells, EditorTableRowAfter, EditorTableRowBefore, EditorTableRowDelete, EditorTableRowMenu, EditorTableSplitCell } from "@/components/kibo-ui/editor"; import { useState } from "react"; import { cn } from "@/lib/utils"; interface NewsEditorProps { className?: string } export default function NewsEditor({ className }: NewsEditorProps) { const [content, setContent] = useState({ type: "doc", content: [] }); const handleUpdate = ({ editor }: { editor: Editor }) => { const json = editor.getJSON(); setContent(json); console.log(JSON.stringify(json)); }; return ( Words: ); };