Closed (fixed)
Project:
IMCE
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2020 at 15:24 UTC
Updated:
8 May 2020 at 21:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thallesThanks @Antonnavi!
This really happen, please, send us your solution to we analyze.
Comment #3
antonnaviThank you for a very fast response, Thalles Ferreira (thalles) !
Attached patch replaces
EditorImageDialogform withImceEditorImageDialogform which checks if current editor usesImceImagebutton, if Yes - file upload element will be disabled and hidden by adding "visually-hidden" CSS class to the element wrapper.Comment #4
antonnaviComment #5
thallesThanks for your patch @Antonnavi!
But did not work to me!
Comment #6
antonnaviCould you plz describe:
Comment #7
thallesMaybe I don't understand:
See:

Comment #8
paulocsHello @antonnavi,
I tested your patch and I had the same error as Thalles.
I applied your patch, created a new content and added an image using the IMCE in the ckeditor. After that, I doubleclicked on the image and it is still using the default Drupal 8 image uploader at the EditorImageDialog.
Comment #9
antonnaviThank you for help @thalles and @paulocs !
Just tested my patch again:
/admin/config/development/performancepage with "Clear all caches" button)Means: I forgot to add notice that flushing all caches is required (because I altering route of image settings form).
Could you test it again plz.
Comment #10
paulocsHello antonnavi,
I tried the new steps you wrote, but it doesn't work.
Steps I followed:
What I could see is that the function alters the route properly, but it is not calling the class ImceEditorImageDialog when doubleclicking on the image. The created form is still the one from core/modules/editor/src/Form/EditorImageDialog.php
Comment #11
paulocsComment #12
antonnaviHello, paulocs !
Thank you for help!
Patch was updated. Could you test it again plz.
Comment #13
antonnaviComment #14
ilgnerfagundes commentedIt seems to be working, I double-clicked the image and she just selected it, I clicked it with the right button and there is no option to edit.
Comment #15
thallesWorks to me!
Thanks @all!
Comment #17
thalles