img-resize-tiptap-extension
v1.0.8
Published
Image resize extension for TipTap
Downloads
19
Maintainers
Readme
Image Resize Extension For Tiptap
Usage
import { ResizableImage } from "img-resize-tiptap-extension";
import StarterKit from "@tiptap/starter-kit";
import Image from "@tiptap/extension-image";
const extensions = [StarterKit, Image, ResizableImage];
const editor = useEditor({
extensions,
content,
});
<EditorContent
editor={editor}
style={{ border: "1px solid black", height: "100px", padding: "10px" }}
/>;
- Feel free to raise Pull Request if you find any bug or any improvement.