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:


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


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


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?

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More