Integrating CKFinder with InnovaStudio WYSIWYG Editor
Posted
by Sonny
on Stack Overflow
See other posts from Stack Overflow
or by Sonny
Published on 2010-04-05T15:03:43Z
Indexed on
2010/04/05
19:03 UTC
Read the original article
Hit count: 778
I use InnovaStudio WYSIWYG Editor, and I am trying to replace InnovaStudio's Asset Manager with CKFinder. There's a line in the editor configuration for what URL to use for the asset manager. I have pointed it at CKFinder. The part I can't get to work is getting the field to populate with the double-clicked file's path from CKFinder.
It appears to use the 'func' parameter to specify the callback function. The URL I'm calling is: /common/ckfinder/ckfinder.html?action=js&func=setAssetValue
The InnovaStudio WYSIWYG Editor provides the setAssetValue(v)
callback function for setting the field value. The v
parameter should hold the URL.
CKFinder pops up as expected when it's invoked, but neither double-clicking the thumbnails nor using the "select" option in the context menu works. The normal/expected behavior is that CKFinder closes and the target field is populated with the URL for the selected asset.
Additional Info: The InnovaStudio WYSIWYG Editor has a "popup" for adding an image or flash file to the content. This pop-up is in an iframe. When it calls CKFinder (or it's own asset manager), that is also in an iframe. It appears that CKFinder is looking in the scope of the main window rather than the image/flash iframe that actually contains the field that needs to be populated.
© Stack Overflow or respective owner