JSPM

tiptap-extension-resize-image-kvokker

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q32661F
    • License MIT

    A tiptap image resizing extension for React, Vue, Next, and VanillaJS. Additionally, it can align the image position.

    Package Exports

    • tiptap-extension-resize-image-kvokker

    Readme

    tiptap-extension-resize-image

    tiptap-extension-resize-image

    Tiptap is a suite of open source content editing and real-time collaboration tools for developers building apps like Notion or Google Docs.

    This package provides the ability to adjust the size of the tip tab image. It has been tested in React, Vue, and NextJS, and stability in VanillaJS may not be guaranteed. Additionally, it can align the image position.

    Installation

    You can install it using npm:

    $ npm install tiptap-extension-resize-image

    Usage

    import StarterKit from '@tiptap/starter-kit';
    import ImageResize from 'tiptap-extension-resize-image';
    import { EditorContent, useEditor } from '@tiptap/react';
    
    const editor = useEditor({
      extensions: [StarterKit, ImageResize],
      content: `<img src="https://source.unsplash.com/8xznAGy4HcY/800x400" />`,
    });