With FCK Editor, it only works if I 'Switch to plain text editor.' FCK Editor is not allowing the code to be added in rich text mode. The workaround is simple - switch the plain text, add image, go back to rich text - but I'm curious if there's any way to avoid that. Otherwise, a NICE module!

Comments

hutch’s picture

The same trick works with Tinymce. If you remove the 'add an image' widget from Tinymce the code can be added without disabling rich text, perhaps there is a setting in FCK Editor that is preventing things.

vladsavitsky’s picture

Turn off/on WYSIWYG-editor isn't good solution.
Module should integrate with FCKeditor and TinyMCE.

hutch’s picture

Imagepicker works with tinyMCE, there is code to identify the id of the body element (mce_editor_0).
If someone familiar with FCKEditor can figure out that id I can add code to tell the imagepicker javascript where to insert the string.

chrisschaub’s picture

The doc for the FCKEditor js api is here:

http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API

You can probably inset html in FCKEditor using method outlined here, comment #1 ...

http://drupal.org/node/213679#comment-706291

hutch’s picture

Thanks for the tip, I will investigate further when I can find the time ;-)

hutch’s picture

StatusFileSize
new951 bytes
new951 bytes

Attached are two patches for D5 and D6. Both are on the development versions.
Both use FCKeditor_2.6.3
I have not tested the D5 version yet but it should work.

hutch’s picture

I found a bug in the previous two patches, here is an improved version.
In the old patches imagepicker would not function properly when FCKeditor was removed.

stephanvaningen’s picture

Version: 5.x-1.0 » 6.x-1.2
Priority: Normal » Minor

Nice, works perfectly for me (tested with imagepicker 6.x-1.2 and FCKEditor 6.x-1.3-rc3)

hutch’s picture

I just tested it with the wysiwyg module which works with tinymce but not with fckeditor. The fckeditor module does work. I have an idea why but I will need to mess around a bit to find out

jadelrab’s picture

subscribing

hutch’s picture

Assigned: Unassigned » hutch
Priority: Minor » Normal
StatusFileSize
new1.01 KB

The attached patch replaces all previous patches in this thread. It will apply to 6.x-1.2 or 6.x-dev. Please test and report back.
It enables the use of imagepicker in conjunction with the fckeditor module

The wysiwyg module works with tinymce and imagepicker, but the fckeditor when installed within the wysiwyg module does not work with imagepicker. I note that on the wysiwyg module page, http://drupal.org/project/wysiwyg there is a note suggesting the fckeditor is not yet fully integrated so I guess it is a case of wait and see how it goes.

Grayside’s picture

I have fckeditor set up to toggle between the wysiwyg and the regular text area. Furthermore, my personal default starts without the wysigwyg. The button to insert the image does not work until after I've toggled on FCKeditor then back to text markup.

Anonymous’s picture

Patch #11 works for me on drupal 6:10, imagepicker 6.x.1.dev and fckeditor 6.x-1.r-rc7 and using the added tags to filtered html

Thanks!

mhreynolds’s picture

patch does not work for me on drupal 6.9, fckeditor 6.x-2.beta1, image picker 6.x-1.4

Grayside’s picture

This no longer seems to work for me. FCKeditor 6.x-1.3.

If WYSIWYG support is a big deal, I suggest looking at supporting the Wysiwyg API. Given the purpose of this module, I'd say this is almost a critical feature, as the simplified image interface dovetails perfectly with the concept of a Wysiwyg.

hutch’s picture

The issue for me is not wether to support wysiwyg but *how* to make it work.
I have spent many hours trying various things but it has proven very tenuous and slippery.

mecvo1984’s picture

Ditto, the FCKeditor patch works here on an IIS installation. Kudos to you for this, I've tried at least 5 image uploading modules today and this one is the best for what I need....

Read all the docs on FCKeditor image quick uploads but could not get rid of broken icons no matter what I think bc each time a file was uploaded via FCK upload (which worked fine), an .htaccess file would be written to the upload directory and IIS could not display. Anyone else seen this?

At any rate, Image Picker module w/ FCK patch works for me on IIS 6 Win 2003, latest Drupal.

Thanks!

hutch’s picture

Fckeditor and the routine that imagepicker deploys are both javascript and how they interact depends on the OS and browser of the client machine using the site. What I need to know is which browsers it works in and on what OS the client is running.

By the way, which module did you install Fckeditor with and which version of Fckeditor?

As far as I can see the .htaccess file is created by drupal and contains nothing that should stop anything being accessed by apache. You may have to remove it for IIS. Have a look around drupal.org, my bet is others have experienced this.
Imagepicker itself does not create .htaccess files.

hutch’s picture

I have applied a fix for fckeditor to imagepicker-6.x-2.x-dev. It works with module fckeditor-6.x-1.3 but *not* with the 2.x-dev version of fckeditor for some reason.
The code change is in function imagepicker_js and is pretty simple so anyone wanting to fix an earlier version can easily do so, just look for 'fckeditor' in that function.

hutch’s picture

StatusFileSize
new1.67 KB

Here is a patch on the latest 2.x-dev version of imagepicker. It improves the pickup of fckeditor as used in fckeditor-6.x-1.3 module and now adds support for the wysiwyg module, with fckeditor and tinymce installed therein.
Please test this if you can

hutch’s picture

Status: Active » Fixed

The wysiwyg patch has been incorporated into the current 2.x series

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.