img-resize-tiptap-extension
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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.

Package Sidebar

Install

npm i img-resize-tiptap-extension

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

59.9 kB

Total Files

9

Last publish

Collaborators

  • 0xvashishth