Jump to content

How to use the insert/edit image UI from TinyMCE for changing an image attribute?


Recommended Posts

I'm making a custom module using ps_imageslider as an example. By default, when choosing the image for a slide, you can only upload a new image like this:

image.png.f2a4612c0df5cec26f9f177318fa284c.png

However when adding an image to textarea with TinyMCE, you can use the more advanced insert/edit image tool, like this:

image.png.893fa812ce24248b0762004c49f25646.png

When you click the eye icon next to "Source" it opens this File Manager so you can upload OR choose an existing image file:

image.png.82584111a833139d930ac5872e1d0677.png

How can I replicate this so that when choosing the primary image for the slide like in the first example above, I can decide to use an existing file instead of only uploading a local file?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...