chipchap
v1.0.1
Published
A Chakra-based Tiptap editor.
Readme
chipchap
A Chakra-based Tiptap editor.
API design
Configure the editor instance
You configure the editor instance the same way, via Tiptap's useEditor.
Choose which menu to render
Currently only the fixed menu (or no menu) are supported. In the future we'll add support for the bubble menu and floating menus, but you can do that yourself for now.
Style the editor in the Chakra theme
Use the standard Prosemirror classes to target the editor via the Chakra theme.
import { useEditor } from "chipchap";
export const MyComponent = () => {
const editor = useEditor();
return <Editor editor={editor} menu="fixed" />;
};Roadmap
- ~~supports tiptap starterkit extensions (bold, italic, strike, code, text, h1, h2, h3, bullet list, ordered list, code block, block quote, horizontal rule)~~
- ~~support fixed menu~~
- ~~support no menu~~
- ~~support every extension in starterkit~~
- add a way to style the editor, ideally through the consumers chakra theme
- code and codeblock styling (highlight/lowlight?)
- support floating and bubble menus
- add support for other simple extensions (link)
