Enabling features in ColdFusion's Rich Text Editor

This post is more than 2 years old.

A common question is - how can I enable file upload (among other things) in ColdFusion 8's rich text editor? FCKEditor, which the code is based on, has it, so why not CF? Rakshith of the CF team has an excellent blog article demonstrating how to do this:

ColdFusion 8: Enable File, Image and Flash upload in the rich text editor in five steps

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by James Allen posted on 12/14/2007 at 10:47 PM

Why on earth didn't Adobe provide CF options to for turning this feature on? This is an essential option for rich text editors in my opinion as there is usually a need to allowing images to be uploaded - especially in CMS systems.
While Rakshith's instructions work it is somewhat long winded and requires messing with Coldfusion system files.

I hope they address this in a future update.. Seems somewhat of an oversight if you ask me.

Comment 2 by Ryan posted on 12/14/2007 at 11:11 PM


I believe I read something from Adobe about security concerns in a shared hosting environment during the beta testing.

Comment 3 by James Allen posted on 12/14/2007 at 11:31 PM

Ah I see.

I still think they could have simply disabled it by default but given people the option of enabling it. Or providing an option in the administration system to turn it off on a shared hosting basis.

Comment 4 by Todd Rafferty posted on 12/14/2007 at 11:53 PM

@ James, I think Adobe just wanted to get this feature out there rather than worrying about the security aspects of the editor.

This 3rd party app is so small, that I don't think they would want to bother putting admin settings in the CFIDE/Administrator. Plus, the way it's written, there's no real way they could have and shared hosting issues is an even bigger bag of worms (the way it's written).

If you really needed the ability to upload, FCKEditor can be implemented without using cftexarea. So, it's a convenience.

Comment 5 by James Allen posted on 12/15/2007 at 12:56 AM

@ Todd I know what you mean, but I just think it's a shame such an important feature is missed out. Yeah, it can be implemented fairly easily without using the built in function but it feels a little silly to have to do this to fully leverage the features.

If someone goes the route of using richtext=true but then later needs image upload they either have to try and edit the system files (a big no no on shared hosting) or scrap their code and re-do it manually..

Just a shame it couldn't be a fuller implementation. I still think it's cool Adobe added this feature in, but I would like to see the full feature set covered.

I've been using rich text editors in shared hosting for years and not had any security issues so far. I thought CF7+ made it alot easier to tie users into the sandbox..

Comment 6 by Todd Rafferty posted on 12/15/2007 at 1:03 AM

@James, Download the FCKEditor code and take a look through the CFM pages. Now ask yourself how Adobe can make that part of CF Server (full featured, sandboxing, etc.) without just scrapping it and building their own. I don't think it's worth Adobe's time.

I wonder if the Spry team is working on something (probably not) or if that's out of scope.

Comment 7 by James Allen posted on 12/15/2007 at 1:05 AM

You do have a point Todd. I suppose I'm just finding it hard to see the security implications as I've been using a rich text editor on my sites which run on shared hosting for years without issue.

Comment 8 by Steve Walker posted on 12/15/2007 at 9:58 AM

Although I agree that it is a pain that this is not included by default, the ColdFusion team did a wonderful thing. If you load FCKEditor on your site you can take full advantage of the cftextarea tag by using the basepath attribute and pointing it to the installed location. This give you every option available. The new 2.5 version is so much better than the current CF installation.

Comment 9 by James Allen posted on 12/15/2007 at 5:20 PM

@Steve Now that is very cool! I do like how they've done that. Nice to be able to upgrade the FCK code and still leverage the hooks in CF. Top job.

Comment 10 by Ketan posted on 6/26/2008 at 5:34 AM

My client is on HostMySite (shared environment) and I love the option of uploading a file when creating links -- makes life sooooo much easier for me that feature is incorporated into cfk editor. However, I don't think HMs has this option enabled. Is there a way I can use this feature for my client?

Comment 11 by Raymond Camden posted on 6/26/2008 at 7:32 AM

Well, remember that this is just a 'wrapped up' version of fckEditor. You can always upload the full package yourself.

Comment 12 by Ketan posted on 6/27/2008 at 4:19 AM

Ray, that's what I was thinking, but reading through the docs it's not very clear how to implement this. I mean compared to TineMCE (which is incredibly simple to use and work with) i'm not sure where the fckeditor folder should be uploaded to, how to change the upload directory path, and how to use the code on the textarea style.

Comment 13 by Raymond Camden posted on 6/27/2008 at 5:31 PM

Ketan - I don't use fckEditor. I can't really help you here.