diff --git a/src/content/editor/extensions/nodes/image.mdx b/src/content/editor/extensions/nodes/image.mdx index 287eb455..1fdb2d82 100644 --- a/src/content/editor/extensions/nodes/image.mdx +++ b/src/content/editor/extensions/nodes/image.mdx @@ -80,6 +80,29 @@ Image.configure({ }) ``` +### resize +Adds resizing to image nodes. Resizeable directions and the minimum size of images can be configured. + +When set to `false`, the resize handles are removed. + +```js +Image.configure({ + resize: { + directions: ['left', 'right', 'bottom', 'top', 'top-left', 'top-right', 'bottom-left', 'bottom-right'], + minWidth: 150, + minHeight: 150, + } +}) + +// or + +Image.configure({ + resize: false, +}) +``` + +Resize is disabled by default. + ## Commands ### setImage()