VolgaIgor / editorjs-gallery

Gallery block for Editor.js with multi-loading and sorting
MIT License
9 stars 6 forks source link

Added preview button & modal in the readonly mode #4

Closed akahon closed 2 weeks ago

akahon commented 3 months ago

New Image Viewing Features

Added the ability to preview images in read-only mode and display the selected image in an enlarged view using a modal window.

Key Features:

Images

Edit mode

Readonly mode

Preview

These changes significantly enhance the user experience, making image viewing and management more convenient and accessible, while also improving the overall interface cleanliness by hiding unnecessary buttons in read-only mode.
VolgaIgor commented 2 weeks ago

Hello! Thank you for your contribution, but I would say that you're taking the wrong way. This is primarily an editor, so viewer tools, especially customs, are not needed in it. The best practice would be to create a separate render layer or connect some image viewer on the editor in read-only mode, for example https://photoswipe.com/

And I have also fixed the errors in read-only mode, but in a little different way.