Editor - allow user to view an image in a lightbox or similar

2 Answers 57 Views
Editor
James
Top achievements
Rank 1
James asked on 14 Sep 2023, 04:55 AM

Hi, I'm currently struggling with a feature request and wondering whether anyone has any suggestions for a good way to implement it.

We make use of the Editor control and allow users to insert images. Images appear as a thumbnail by setting the width on their inline style attribute.

Users would like some way of temporarily viewing the image, my thoughts are to perhaps have a CSS hover state that shows a small button which would display the full size image in a lightbox. (Might have to configure the Editor to not make use of iframe?)

Any suggestions would be greatly appreciated! Thanks.

2 Answers, 1 is accepted

Sort by
0
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
answered on 14 Sep 2023, 06:26 AM

Hi.

Did you checkout the Popover Component? You could show your button on hover of the image or even trigger the Popover directly when the user hovers the image. As far as I know it doesn't have a lightbox but maybe it works without.

Just a thought...

Greetings,

Bernd

0
Filip
Telerik team
answered on 15 Sep 2023, 02:06 PM

Hi, James,

Although we lack a built-in feature that we can suggest, you can refer to the following discussion thread for guidance on implementing node hover functionality through a plugin:

Once the hover onmouseover and onmouseenter events have been handled over the image,  you can implement logic that will display a popup with the image. The Popover is a suitable component for that, as Bernd has pointed out.

Regards,
Filip
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Editor
Asked by
James
Top achievements
Rank 1
Answers by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Filip
Telerik team
Share this question
or