1.1.1 • Published 4 months ago

tiptap-extension-resizable v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

tiptap-extension-resizable

npm.io


Tnstall

npm install tiptap-extension-resizable -S

Usage

import Resizable from "tiptap-extension-resizable";

const editor = new Editor({
  element: document.querySelector(".editor"),
  extensions: [StarterKit, Image.configure({ inline: true }), Resizable],
});

Options

You can configure extension options, which are optional.

  extensions: [
    StarterKit,
    Image.configure({ inline: true }),
    Resizable.configure({
      types: ["image", "video"], // resizable type
      handlerStyle: { // handler point style
        width: "8px",
        height: "8px",
        background: "#07c160",
      },
      layerStyle: { // layer mask style
        border: "2px solid #07c160",
      },
    }),
  ],

Relations

@tiptap/extension-image: https://github.com/ueberdosis/tiptap/tree/develop/packages/extension-image

tiptap-appmsg-editor: https://github.com/KID-1912/tiptap-appmsg-editor

1.1.1

4 months ago

1.1.0

4 months ago

1.0.0

5 months ago