I've encountered an issue with FCKEditor 2.x and IE9 that is forcing me to upgrade to CKEditor 3.x. Although the documentation suggests that the version is compatible with CF, I can find no reference to ColdFusion in the install documentation or anywhere else and see no ColdFusion files (such the fckeditor.cfc that was present in FCKEditor 2.x). I do see, however, that the version seems to support Java but I am not aware of how this would work with our ColdFusion server. I could be mistaken but I don't think that this configuration will work for me.
Am I missing something? Does anyone currently use CKEditor 3.x with ColdFusion 9? If so, what do I need to do to get it installed?
I'd appreciate any help I could get.
Am I missing something? Does anyone currently use CKEditor 3.x with ColdFusion 9? If so, what do I need to do to get it installed?
I'd appreciate any help I could get.
Re: CKEditor 3.x and ColdFusion 9
Look at the HTML samples provided and use either the replacebyclass sample or replacebycode sample.
Then the form field just passes the same data it did prior to adding CKEditor to it.
HTH,
Scott
Re: CKEditor 3.x and ColdFusion 9
I just went through this with ColdFusion 9. I was using cftextarea but that connects to the old, built-in FCKEditor v2 as you know. I needed to upgrade to the latest version. I found it was actually a very simple process:
1) Download the latest version, whichever you want, v3 or v4. I used v4.
2) Unzip it wherever you want, but I used the default /cfide/scripts/ajax/ folder where the old fckeditor sub-folder lives. I called the new folder "ckeditor". It's on the same level as fckeditor, it does not replace it, nor do you have to touch fckeditor (even though it will be obsolete after this).
3) Somewhere at the top of your code, on the page with the textarea editor box, you will put this code (point to wherever yours is actually located):
<script type="text/javascript" src="/cfide/scripts/ajax/ckeditor/ckeditor.js"></script>
4) If you are using CFTEXTAREA change it to just a normal HTML textarea and make sure it has a name, like name="content".
5) Underneath this area put the following code, where 'content' is the name of your textarea field:
<script type="text/javascript">CKEDITOR.replace( 'content' );</script>
That's it. You don't have to worry about any custom .cfm files like there were inside fckeditor. Those were only used because of the custom cftextarea tag.
The config file for the latest ckeditor will be fairly minimal compared to fckeditor. If you have a lot of customization you will, unfortunately, have to learn the new ckeditor way of doing things. I found that after about 1-2 hours I was able to convert all my custom javascripts to interact with the new cfeditor just fine.
In summary, your code can literally look like this and it will work:
<script type="text/javascript" src="/cfide/scripts/ajax/ckeditor/ckeditor.js"></script>
<TEXTAREA name="content" id="content">
#TRIM(getContent.content)#
</TEXTAREA>
<script type="text/javascript">CKEDITOR.replace( 'content' );</script>
I hope this helps save someone else the time since I had trouble finding a simple guide to upgrade the built-in editor that comes with CF9 and CF10.