-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from editor-js/feature/enable-tune-selection
Support for selecting and enabling specific tunes in ImageTool
- Loading branch information
Showing
6 changed files
with
129 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Image Plugin Test | EditorJS</title> | ||
</head> | ||
<body> | ||
<div id="editorjs"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest/dist/editor.js"></script> | ||
<script src="../dist/image.umd.js"></script> | ||
<script> | ||
const editor = new EditorJS({ | ||
holder: "editorjs", | ||
tools: { | ||
code: { | ||
class: ImageTool, | ||
config: { | ||
endpoints: { | ||
byFile: "http://localhost:8008/uploadFile", | ||
byUrl: "http://localhost:8008/fetchUrl", | ||
}, | ||
features: { | ||
// caption: false, | ||
border: false, | ||
background: false, | ||
stretch: false, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@editorjs/image", | ||
"version": "2.9.3", | ||
"version": "2.10.0", | ||
"keywords": [ | ||
"codex editor", | ||
"image", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters