Skip to content

Install | Tiptap Image Plus

This package supports both Tiptap v2 and v3. Choose the installation command based on your Tiptap version:

Terminal window
# Install latest version (supports Tiptap v3)
npm install tiptap-image-plus@latest
# Or explicitly install the tiptap-v3 tag
npm install tiptap-image-plus@tiptap-v3
Terminal window
# Install the tiptap-v2 tag
npm install tiptap-image-plus@tiptap-v2

This package works with peer dependencies and requires the following package to be installed in your project:

Terminal window
npm install @tiptap/extension-image

Note: Make sure you have this peer dependency installed as it is required for the package to function properly. The package will not work without this Tiptap extension.

ImagePlus extends the default Tiptap image extension. You can pass all @tiptap/extension-image options, plus:

OptionTypeDefaultDescription
wrapperStyleobject{ }CSS properties for the image wrapper
containerStyleobject{ }CSS properties for the image container
ImagePlus.configure({
wrapperStyle: { background: 'gray', borderRadius: '10px' },
containerStyle: {
background: "linear-gradient(90deg,rgba(30, 88, 117, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%)",
padding: "25px",
borderRadius: "10px",
}
})
tiptapplus.com is not an official Tiptap website and has no business affiliation with Tiptap.