Closed (fixed)
Project:
BUEditor
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2011 at 22:04 UTC
Updated:
2 Mar 2012 at 12:43 UTC
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
Comment #1
ufku commentedYou 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.
Comment #2
konon commentedThank 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 )
Comment #3
ufku commentedComment #3.0
ufku commentedupdate