0

WYSIWYG editors and file management

ColdFusion

If you ever find yourself developing some app that takes user input for content (blog, forum, cms, etc) you will (more than likely) end up shopping for some kind of text editor for your UI. Most people who have encountered this will have come across FCKeditor and TinyMCE.

These two editors work great and are very simple to implement in their default configurations, but start adding in image upload/browsing support and it (while still not being difficult) can be a hurdle for some.


- FCKeditor comes packaged with everything you could possibly need to enable file/image/etc upload and browsing BUT FCKeditor comes pacakged with everything....etc. It seems to be a much 'heavier' editor, in my opinion. Slower to load, and it also has a heavier 'look' right out of the box (it can be skinned).


- TinyMCE is a great editor, and one we use most of the time. One thing you will find if you decide to go with TinyMCE, it does not come pre-packaged with any file manager solution. Enter CFFM. An open source ColdFusion File Manager.

CFFM is very easy to integrate, as well as quite straightforward to customize to your own implementation. The bulk of what it takes to integrate CFFM into your TinyMCE install can be found here and really just boils down to a few extra lines of javascript. (examples from the opensourcecf example site)

//add the function to call CFFM

function cffmCallback(field_name, url, type, win){
// Do custom browser logic
url = '/cffm/cffm.cfm?editorType=mce&EDITOR_RESOURCE_TYPE=' + type;
x = 700;
y = 500;
win2 = win;
cffmWindow = window.open(url,"","width="+x+",height="+y+",left=20,
top=20,bgcolor=white,resizable,scrollbars,menubar=0");
if ( cffmWindow != null )
{
cffmWindow.focus();
}
}

//add that function to your tinymce script

//A BUNCH OF STUFF WAS DELETED FROM THE EXAMPLE JUST TO KEEP IT READABLE SEE HERE AND VIEW SOURCE TO SEE FULL EXAMPLE

tinyMCE.init({
mode : "textareas",
theme : "advanced",
file_browser_callback : "cffmCallback"
});

 

tags:
ColdFusion
Joshua said:
 
Another to consider is KTML. Most people don't know this, but the company making KTML (Interakt) was just bought by adobe. No idea what this means for the future. Maybe KTML integrated into Dreamweaver?

http://www.interaktonline.com/
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
 
Thanks Joshua, do you know anything about image/file managment with KTML?
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
 
Ok, went and checked out KTML...looks like a very nice product indeed. BUT, it looks part of the Kollection from Interakt, which is $399.

I should mention, FCKeditor and TinyMCE are free editors...which fit very nicely in my budget. :)
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Joshua Cyr said:
 
Yes, we use it for our CMS. The file and image browser is integrated and really pretty good. Image previews, image manipluation, auto generating thumbnails. Multiple file uploads, filtering of folders and file types. You can even insert video or flash just like an image with all their controls. I would be happy to give you a demo if you like. Visually it is quite nice, and intuitive for the novice web person.

My only complaint is that you can't specify through their API specific security controls. Once the end user has ability to do file uploads they can pretty much delete as well. We could always modify the eidtor code, but I would like more granular control in their next release.

They use tidy for their code cleaning and aspell for spell checking. Image manipulation is typically done with imagemagic though they support other programs as well.
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Joshua said:
 
That collection package is new. You could just a month a go buy KTML seperately and thus not pay much at all. Free is always good though. ;-)

What will be interesting is what Adobe decides to do with it long term. They already dumped a few Interakt products, and really only kept 4, KTML being one of them. Integration into flex/dw/scorpio? I would be surprised if they just kept it a stand along package as it is now.
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
 
Joshua, This brings up a pretty good related topic. Do you have any experience using other pay editors? Or, is KTML the only one you have experienced?
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Joshua Cyr said:
 
The only other editor I used quite a bit is <A href="http://www.siteobjects.com/pages/index.cfm>SiteObjects SoEditor</a>. It is still in version 2.5. I have on my desktop (no idea why) the 3.0 feature list. It was written in 2004. They still haven't released version 3. We decided to leave soeditor for that reason, evaluated many and chose KTML.

Of of the main criteria for us was strong development path (will continue and improve often enough and significantly enough), mac/win support, no activex or java, intuitive UI, and good file browsing. FCK editor and the like really didn't have the file browsing and image gallery UI I wanted at the time, and for the price it was easily worth using KTML rather then building the missing functionality in the other editors. Since then the free editors really have come a good way. We are still happy with KTML though, and don't really need to invest time looking at others. Then again, depending on what Adobe decides to do, we may have to.
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Rick Curran said:
 
Hi,
I've used KTML myself a bit, but not really the newest version although I was in on the beta test for it. I was never completely happy with it but the new version is quite good with some handy image manipulation capabilities (resizing, sharpen etc) available via imagemagick or GD libraries on the server. Before the Adobe buyout of interakt there was actually a free 'lite' version of KTML too, overall I thought the cost for developer / site licences a little high for it though.
One other criticism of KTML I had was lack of features for dealing with proper semantic structure on a page such as Definition lists, acronyms, abbreviations etc, all the stuff you really need if you're trying to do very accessible, semantic focused structure. Although a trickier issue is getting you're clients who use the editor to understand *why* they should structure things this way anyway!

I currently use WYSIWYG Pro (www.wysiwygpro.com) and it's quite good, price is quite cheap at as little as $47 for a licence. It has good file management features too. Like KTML it doesn't score well on things like Definition lists etc but apart from that it's a decent editor.

I'm always keen to get recommendations from other people about editors, I'm still looking for the 'holy grail'!!!

Rick
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
 
$47 per license is a little more palatable. Rick, did you ever give the open source editors a try and find them lacking?
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Rick Curran said:
 
Hi,
I have to admit I never really checked out the open source editors before going with KTML or since using WysiwygPro. At the time I don't think I looked that hard, or maybe the weren't around? It was a few years ago when I first tried KTML.

However, recently I have looked around a bit, basically I'm looking for an editor that can handle the whole semantic structured XHTML thing properly, also looking for a decent all-in price before I make a decision and buy a big multi-site, multi-app licence which is what I'm looking for.
TinyMCE looks good but the cost appears when you have to add the file management plugin to it, so I'm inclined to stay with WysiwygPro at the moment as it seems on par with TinyMCE overall.

I came across an article recently which compared a few OS and commerical editors, I need to go back and look at that again and do some more comparisons. I'm interested to know more about your findings too. The article was at: http://standards-schmandards.com/index.php?2006/03...

Cheers!
 
posted 1146 days ago
Add Comment Reply to: this comment OR this thread
 
Frederico Caldeira Knabben said:
 
Hi Aaron,

I not here to make public relations to FCKeditor... I just want to precise something regarding the "much 'heavier' editor" observation.

If you open the TinyMCE demo:
http://tinymce.moxiecode.com/example_full.php?exam...

You will have 153 requests to their server and a total 406.974 bytes received (I'm using Fiddler to analyze it). (143/21.982 when cached and refreshed with F5).

The FCKeditor demo instead:
http://www.fckeditor.net/demo

Here you have 36 requests to the server and 231.464 bytes received. (29/14.232 when cached and refreshed with F5).

I agree that they have a much better hosting, so their response times are better, but I think that is not the real thing to consider, right?

Please don't get me wrong... the thing is that today in Internet, words may sound "much 'heavier'" than they really are.

Thanks for your analysis.
 
posted 1143 days ago
Add Comment Reply to: this comment OR this thread
 
 
Mr. FCK himself ladies and gentlemen!

Thank you for your comments Frederico, I have used both FCK and TinyMCE in many projects so I was speaking mainly from my experience with them and the perceived 'seat of the pants' speed.

Keeping with the theme of the post...FCK's image/file/etc management that is included, is great and is pretty much all most developer's would need.

Thanks,
AJL
 
posted 1143 days ago
Add Comment Reply to: this comment OR this thread
 

Search

Fuelly