I have created a plugin that allows a user in drupal to browse the files directory and insert a link to that file into the rte. What I'd like to do is detect it's an image and open up the image dialog with prepopulated fields. I have tried various things and nothing seems to be working. Can it even be done? I've been trying FCKDialog.FCK.OpenDialog('FCKDialog_image', FCKLang.DlgImgTitle, 'dialog/fck_image.html', 450, 390); but FCKDialog doesn't seem to be defined. Any hints or direction would be helpful.
Tue, 11/18/2008 - 16:16
#1