Is the following possible?
I've got a readonly textfield, and a button. If I press the button I want to open the filmanger, just like it works in the cKeditor "browse server" option. If the user selects an image, I want it's information (only the location/filename.ext) to be returned to the textfield.
so something like this:
- <script>
- $("#browse_image").click( function () {
- window.open("location of filemanager.php?some vars like return to selected_image");
- });
- </script>
- <input type="text" id="selected_image" name="selected_image"> <input type="button" value="Browse on server" id="browse_image">
The filebrowser works like a charm in my cKeditor, thank you for that!