Merge pull request #1052 from patriceac/patch-52

Fix for Clear button in image editor
This commit is contained in:
cmdr2
2023-03-28 15:34:57 +05:30
committed by GitHub

View File

@ -171,6 +171,7 @@ const IMAGE_EDITOR_ACTIONS = [
icon: "fa-solid fa-xmark",
handler: (editor) => {
editor.ctx_current.clearRect(0, 0, editor.width, editor.height)
imageEditor.setImage(null, editor.width, editor.height) // properly reset the drawing canvas
},
trackHistory: true
},