Skip to content

Commit

Permalink
Merge pull request yabwe#971 from goldensunliu/patch-1
Browse files Browse the repository at this point in the history
add instruction to disable file dragging all together
  • Loading branch information
nmielnik committed Feb 12, 2016
2 parents 512f13f + 8a615a8 commit 94c16b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,18 @@ var editor = new MediumEditor('.editable', {
});
```

#### Disable File Dragging
To stop preventing drag & drop events and disable file dragging in general, provide a dummy ImageDragging extension.
```javascript
var editor = new MediumEditor('.editor', {
extensions: {
'imageDragging': {}
}
});
```
Due to the [state of code](https://github.com/yabwe/medium-editor/issues/966) in 5.0.0, the editor *ALWAYS* prevented any drag and drop actions.
We will have a better way to disable file dragging in 6.*

### Options Example:

```javascript
Expand Down

0 comments on commit 94c16b6

Please sign in to comment.