How do I enable Image Uploader for FCKEditor in wysiwyg?

Comments

srjosh’s picture

Assigned: Unassigned » srjosh
Status: Active » Needs review

It's actually pretty easy.
Provided you have installed wysiwyg in sites\all\modules and fck in a subfolder of that:

You first need to enable it in your settings file: \sites\all\modules\wysiwyg\editors\fckeditor.inc, about line 85: 'ImageUpload' => true,.

Then, you need to enable it in the fck php handler: sites\all\modules\wysiwyg\fckeditor\editor\filemanager\connectors\php\config.php line 30 or so:

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
//		authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true ;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/sites/default/files/' ;

the file paths may need some tweaking. Please note the security comments immediately before the enabler!

falieson’s picture

I actually had done all of those things and it wasn't working. I ended up getting frustrated and using TinyMCE/IMCE instead. Thanks for the reply though, I hope it helps someone else.

sun’s picture

Status: Needs review » Closed (won't fix)

Exactly because of those required, manual file edits, Wysiwyg API won't support the native file brower.

jenlampton’s picture

I had the file uploads working with WYSIWYG last week, has this feature been removed? Are there any plans to allow people to upload images via WYSIWYG module again or is it some kind of security risk? Everyone will want this feature, I don't understand the "won't fix" status, is that just for this version? if so, is there an idea of when we can expect to get the image upload back?
jen

pitxels’s picture

Those "manual file edits" should be something one configure in the admin.

I am not a drupal coder myself but I think, that the code can be extended and the config files modified with the admin interface, also once images are uploaded they could be saved as attachments of the node.

That would be an integration for sure, I am very sad to see all these "wont fix" status.... :(

ps: IMCE is not user as friendly as the FCKeditor browser.

arnieswap’s picture

srjosh - the path to install any editor through WYSIWYG API is not the one that you suggested. I tried your method, and as I knew, WYSIWYG module did not detect my FCKEditor.