Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolbar for EssencePicture editor has several issues #2135

Closed
robinboening opened this issue Jun 12, 2021 · 4 comments
Closed

toolbar for EssencePicture editor has several issues #2135

robinboening opened this issue Jun 12, 2021 · 4 comments

Comments

@robinboening
Copy link
Contributor

robinboening commented Jun 12, 2021

I spotted several issues when using the icon-links in the EssencePicture editor toolbar. I don't want to flood the issues list even more by adding multiple tickets for each of those issues as they might have become buggy due to the same code changes / PR.

Steps to reproduce

  1. Configure an element with EssencePicture and add settings with crop: true and linkable: false
  2. Navigate to the page edit view, add the element, assign an image and save the element.
  3. reload the entire page edit view (this is important as the first issue I am going to explain below does not appear otherwise)

Expected behavior

  1. The icon link for the image cropper should be visually "activated" and it should be functionally clickable
  2. The icon link for linking the picture should be visually deactivated and it should not be clickable
  3. When opening the overlay for picture properties saving should not return an error. Fixed by Image cropper destroy #2139

Actual behavior

  1. The icon link for the image cropper is visually deactivated and is not clickable.
  2. The icon link for linking (and removing a link) is not clickable but it is visually "activated".
  3. When opening the overlay for picture properties, saving leads to parsererror (a quick bug hunt led me to the Alchemy.ImageCropper.destroy() causing this, called from essence_pictures/update.js.erb). Fixed by Image cropper destroy #2139

System configuration

  • Alchemy Version: main branch
@tvdeyen
Copy link
Member

tvdeyen commented Jun 25, 2021

  1. The icon link for the image cropper is visually deactivated and is not clickable.

This is not a bug, but a feature. See: https://github.com/AlchemyCMS/alchemy_cms/blob/main/app/models/alchemy/essence_picture.rb#L134-L140

Without the image being assigned there is nothing to crop. Also we check if the image is large enough to be cropped at all. The latter is controversial, though.

  1. The icon link for linking (and removing a link) is not clickable but it is visually "activated".

Should be easily fixed. PRs welcome

@robinboening
Copy link
Contributor Author

In the steps to reproduce the issue I missed the part of assigning the image, sorry!

It probably was an issue with the image size, as you said. I can not reproduce it anymore using a large image.

I'll update the issue. It leaves us only with the icon link problem.

@github-actions
Copy link

This issue has not seen any activity in a long time.
Please create a pull request with a fix or ask someone of the community if they can help.
This issue will be closed in 7 days if no further activity happens.

@github-actions github-actions bot added the Stale label Mar 18, 2022
@github-actions
Copy link

This issue has not seen any activity in a long time.
If the issue described still exists in recent versions of Alchemy,
please open a new issue with. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants