Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Include module at your application
```javascript
const SimpleImage = require('@editorjs/simple-image');
```
OR
```javascript
import SimpleImage from '@editorjs/simple-image'
```

### Download to your project's source dir

Expand Down Expand Up @@ -57,6 +61,16 @@ var editor = EditorJS({
...
});
```
## How to insert an image

**Note:** There is no insert icon for this package. To insert an image, you need to drag and drop the image (GIF/JPEG/JPG/PNG/SVG/WEBP) into the editor.

**Steps:**

1. Open the editor.
2. Drag and drop the image into the editor.
3. The image will be inserted into the editor at the current cursor position.
4. You can then Add Border, Stretch Image and Add Background the image as needed.

## Config Params

Expand Down