Skip to content

Vizel API / core/src / VizelImageResize

Variable: VizelImageResize

ts
const VizelImageResize: Node<VizelResizableImageOptions, any>;

Defined in: packages/core/src/extensions/image-resize.ts:35

ResizableImage Extension

Extends the base Image extension with resize handles. Uses a NodeView to wrap images with draggable resize handles.

Remarks

This extension registers the schema node "image", the same node name as VizelImage. Pass only one of the two to the editor — passing both will cause Tiptap to throw a duplicate-node-name error.

Prefer composing through createVizelImageUploadExtensions which handles the resize / non-resize choice for you.

Released under the MIT License.