Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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