CFTextArea richtext editor – Bugs and Fixes

Yesterday I wrote about the cool rich text editor available in CF8 (aka FCKeditor). It was all working swimmingly until this morning. Suddenly the editor would not display on my screen. If I removed the richtext=”yes” I would get the normal text editor. This let me know there was something wrong with the editor itself.

A quick search led me to 2 potential problems:

The first is a “2010 bug” for gecko based browsers (firefox). It seems the designers of the FCKeditors did not think we would be alive and using gecko browsers after 2009. So I implemented Pete Freitag’s solution to that problem.

That was not my problem however, since it had worked the day before. The second likely cause was that my path to the FCKeditor was not known to the page I was working on, especially since I am on a hosted server. So I added the basepath attribute into cftextarea tag to point it to myCFIDE directory. And that brought me back to a working editor.

<cftextarea richtext="yes" toolbar="Basic"
basepath="/apps/myCFIDE/scripts/ajax/FCKEditor" ...>

While there may be more issues out there with the richtext editor these seem to be the most common. If you have had similar problems and found alternate solutions please feel free to comment.

Cup size   
Select size then click on coffee cup.
This entry was posted in Code. Bookmark the permalink.