Imaged Edit button not showing
See original GitHub issue🐜 image edit plugin bug
Summary
Trying to use imaged-edit with another plugin than Doka, when tried to use plugin API wrapper in docs it doesn’t show the edit button that will trigger custom editor.
not sure if this
How to reproduce
<script>
FilePond.registerPlugin(
FilePondPluginFileValidateType,
FilePondPluginImageExifOrientation,
FilePondPluginImagePreview,
FilePondPluginImageCrop,
FilePondPluginImageResize,
FilePondPluginImageTransform,
FilePondPluginImageEdit
);
const editor = {
// Called by FilePond to edit the image
// - should open your image editor
// - receives file object and image edit instructions
open: (file, instructions) => {
// open editor here
console.log(file);
},
// Callback set by FilePond
// - should be called by the editor when user confirms editing
// - should receive output object, resulting edit information
onconfirm: (output) => {},
// Callback set by FilePond
// - should be called by the editor when user cancels editing
oncancel: () => {},
// Callback set by FilePond
// - should be called by the editor when user closes the editor
onclose: () => {}
}
FilePond.create(
document.querySelector('input'),
{
labelIdle: `Drag & Drop your picture or <span class="filepond--label-action">Browse</span>`,
imagePreviewHeight: 170,
imageCropAspectRatio: '1:1',
imageResizeTargetWidth: 200,
imageResizeTargetHeight: 200,
styleLoadIndicatorPosition: 'center bottom',
styleProgressIndicatorPosition: 'right bottom',
allowImageEdit:true,
styleImageEditButtonEditItemPosition:' bottom center',
imageEditAllowEdit:true,
imageEditIconEdit:'<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M8.5 17h1.586l7-7L15.5 8.414l-7 7V17zm-1.707-2.707l8-8a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-8 8A1 1 0 0 1 10.5 19h-3a1 1 0 0 1-1-1v-3a1 1 0 0 1 .293-.707z" fill="currentColor" fill-rule="nonzero"></path></svg>',
// Use Doka.js as image editor
imageEditEditor:editor.open()
}
);
</script>
Expected behaviour
1- after upload image it will show edit button
2- clicking edit button should trigger the API wrapper editor.open()
3- after finishing eidit call editor.confirm
and use callback function “output” will pass edit base64image to filepond
Environment | Version |
---|---|
OS | Linux |
Browser | Chrome |
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
The Photo Editor button appears in the task bar, but the ...
When you start Microsoft Photo Editor 3.01, the Photo Editor button appears in the task bar, but the Microsoft Photo Editor window does...
Read more >Image Edit button not showing #206 - pqina/filepond - GitHub
Trying to use imaged-edit with another plugin than Doka, when tried to use plugin API wrapper in docs it doesn't show the edit...
Read more >restore edit button - Apple Community
If a previously edited photo cannot be edited, try to revert the photo to the original with "Image > Revert to Original". Show...
Read more >The edit photo button is no in google photos anymore, how do ...
1) System > Clear default apps for images · 2) Open an image in another app, (not Google Photos) · 3) Click "Edit"...
Read more >How to fix missing edit button on messenger app 2021
Recently you will notice that edit button is no longer displayed when you try to upload and edit a photo with facebook messenger...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think you migh thave to use
v-bind:
in this situation? I’m not sure, not a Vue expert.v-bind:image-edit-editor="editor"
More info here. https://stackoverflow.com/questions/45174669/vuejs-2-passing-prop-object-to-child-component-and-retrieving
@usama-asfar This is the Vue repository. The Doka.js package includes a working React example.