Open RoboVij opened 1 year ago
@RoboVij
Do you want to change the default of the detailed menu of the initial menu?
That feature is not yet supported in image-editor
...
Something similar. Whenever a new image is loaded, no matter what menu is previously selected or even if none is selected, the crop menu should be selected by default on the new loaded image.
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!
Working example for everyone who got lost there ;)
this.imageEditor.loadImageFromFile(this.image)
.then(r => {
this.imageEditor.startDrawingMode('CROPPER');
this.imageEditor.setCropzoneRect(2 / 3);
});
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!
Summary The user should see the crop menu by default with a specific crop ratio (2:3) whenever a new image is loaded.
initMenu: "crop"
of theincludeUI
options only works on the initital load. How to achieve the same, lets say when the user abandons the current image and loads a new one? It can partially be achieved with the following (Vue) code:The above code works when the user is already in the crop menu before loading the new image. But if other or no menu is selected it gives an error:
Version
"@toast-ui/vue-image-editor": "^3.15.2"