I created a separate php file with image upload functionality (upload to image-hosting).

User clicks a light/colorbox link and get iframe with that php.

When the image uploads by user, my iframe shows an url of this image.

Is it possible to create bueditor button with popup iframe (like a simple link) and get some value (img url) from this iframe? Any help would be greate :)

UPD: OK, I found the way to make button->click->iframe window, but how to get the url from that iframe back to textarea...
I steel don't know.

Comments

ufku’s picture

You can find lots of information on the net on how to access iframe content from the opener script. Though, it is better to implement the reverse where a script in the iframe sends the data to its opener when certain conditions are met.

konon’s picture

Thank you for the tip )
I made 90% of button, except this reverse sending data, but I haven't a time and copy-paste a code is much simpler )

ufku’s picture

Status: Active » Closed (fixed)
ufku’s picture

Issue summary: View changes

update