Closed (fixed)
Project:
Image Picker
Version:
6.x-2.6
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2010 at 17:46 UTC
Updated:
30 Jan 2010 at 19:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
hutch commentedUsing the WYSIWYG module in combination with FckEditor works for me.
Comment #2
CarbonPig commentedSorry, but I'm not asking about FckEditor. I was asking about ckeditor http://drupal.org/project/ckeditor
Thanks,
CP
Comment #3
bryancasler commentedSubscribe
Comment #4
hutch commentedImagepicker does not support Ckeditor at the moment, in order to provide support you would need the the following information:
These would then have to be added to imagepicker_iframe.js. See the section lines 160-190 for how some other wysiwyg editors do it.
Perhaps a request for help on the Ckeditor issue queue, someone there should have the answers.
Comment #5
wwalc commentedThis patch will work only with CVS version of CKEditor module (with the dev release since tomorrow) - I have added a function that should help other developers insert HTML content into CKEditor when CKEditor module is enabled: Drupal.ckeditorInsertHtml.
Comment #6
hutch commentedI have added the patch to imagepicker CVS. This should appear as latest development version by tomorrow.
Thanks for the patch!
Comment #7
CarbonPig commentedCan the patch be applied to another version if someone doesn't use CVS?
Please excuse my level of understanding when it comes to CVS.
Thanks,
CP
Comment #8
klonoswill check it out and report back (soon as it gets into the latest dev version).
...subscribing.
Comment #9
hutch commentedThe patch has been applied in the current development version, here
imagepicker_iframe.js was up until recently inline, in a function called imagepicker_js(). You could add the section manually there, just below the section that tests for win.FCKeditorAPI. This is circa line 953 in imagepicker.module in version 6.x-2.5
Here is the code for those who can't/won't use patch
Comment #10
wwalc commented@anyone - just make sure you're running the latest dev release of CKEditor module. Drupal.ckeditorInsertHtml function is not available in CKEditor module 6.x-1.0 (will be available in 6.x-1.1). In case of any troubles feel free to create another issue in Image Picker or CKEditor issue tracker.
@hutch - thanks for committing it so quickly!
Setting as fixed, because the patch was committed to CVS.
Comment #11
hutch commentedI went ahead and committed it altough it is not yet tested. I reckon it will work ;-)
I'll test it myself if I get the chance to install CKeditor somewhere.
@wwalc, thanks for coming up with such an excellent fix.