Issue #490Opened November 8, 2017by ryandeba0 reactions

Prevent modifying specific image components

Question

I have a use case where I would like to make some specific components completely locked down (i.e. not resizable, not draggable, not copyable, not removable, etc). I have this mostly working, but I'm having a problem with images - I cannot seem to prevent the double-click functionality that opens the asset manager modal and allows the image source to be changed. Is it possible to prevent that modal from opening when double-clicking an image?

I've tried setting the component's "editable" attribute to false component.set({editable: false});, but that does not seem to give the desired behavior. In fact, it looks like the editable attribute is false by default on all image components, but I could be wrong about that. I would be happy to work on this feature myself and submit a pull request if you'd like.

Thanks!

Answers (3)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.