mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-19 14:53:00 +08:00
27 lines
820 B
Markdown
27 lines
820 B
Markdown
# Image
|
||
Use this extension to render `<img>` HTML tags. By default, those images are blocks. If you want to render images in line with text set the `inline` option to `true`.
|
||
|
||
:::warning Restrictions
|
||
This extension does only the rendering of images. It doesn’t upload images to your server, that’s a whole different story.
|
||
:::
|
||
|
||
## Installation
|
||
```bash
|
||
# with npm
|
||
npm install @tiptap/extension-image
|
||
|
||
# with Yarn
|
||
yarn add @tiptap/extension-image
|
||
```
|
||
|
||
## Settings
|
||
| Option | Type | Default | Description |
|
||
| ------ | ------- | ------- | ------------------------------ |
|
||
| inline | boolean | false | Renders the image node inline. |
|
||
|
||
## Source code
|
||
[packages/extension-image/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-image/)
|
||
|
||
## Usage
|
||
<demo name="Nodes/Image" />
|