-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
can be reproduced with the following code:
import EditorJS from "@editorjs/editorjs";
import Gallery from "@kiberpro/editorjs-gallery";
import Sortable from "sortablejs";
const editorContainer = document.getElementById("editor");
const uploadUrl = "/upload";
const editor = new EditorJS({
holder: editorContainer,
tools: {
gallery: {
class: Gallery,
config: {
sortableJs: Sortable,
endpoints: {
byFile: uploadUrl,
byUrl: uploadUrl,
},
field: "file",
},
},
},
onChange: () => {
editor.save().then((data) => {
console.debug(data);
});
},
});Adding or moving images correctly trigger EditorJs onChange event, but removing images or changing style does not. Any workaround or suggestion to make it work?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels