Currently, if you want to edit an image that you want to select from the Item Selector, a new modal is opened for that purpose. Thus, we have two modals opened at the same time, with is not a good pattern in Lexicon.
Steps to reproduce:
- Go to blogs and add an entry
- Select a cover image (Item Selector is opened in a modal)
- Select/upload an image (the preview for the image is opened in the same modal)
- Click on the pencil icon in the top bar
A new modal is opened for edit the image
There was a bug related with this (https://issues.liferay.com/browse/LPS-119605), but when tried to remove legacy code to resolve it, the new pattern for modals make very obvious that there were two modals.