Skip to content

Commit

Permalink
Update Readme with border option
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodriguezS committed Apr 19, 2024
1 parent 6a2f470 commit f0e0063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ Require this script on a page with Editor.js.
```javascript
const editor = new EditorJS({
onReady: () => {
new DragDrop(editor);
new DragDrop(editor, '1px solid red');
},
});
```

Select the block, drag the toolbar settings button and drop it at the desired position.
Select the block, drag the toolbar settings button, and drop it at the desired position. The optional second parameter adds styles to the indicator border; otherwise, the default border style value is used.

If you're already using [editorjs-undo](https://github.com/kommitters/editorjs-undo), then your code will look somewhat like this:

Expand Down

0 comments on commit f0e0063

Please sign in to comment.