My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Integrating ActivEdit with Blog CFC

How to use ActivEdit in Ray Camden's BlogCFC


Adding ActivEdit to existing ColdFusion Application is typically quite simple. In this KB article we show how to add ActivEdit into a ColdFusion Blogging application written by Ray Camden called BlogCFC.

First copy the inc directory, and activedit.cfm into the directory that you installed BlogCFC into. Also create an images directory in that folder.

Now open up editor.cfm and replace the line:

<textarea name="body" cols=50 rows=17>#htmlEditFormat(form.body)#</textarea>

With the following:

<cf_activedit name="body"
    inc="/support/kb/indexcfm/fuseaction/single/id/1124/inc/index.html"
    imagepath="#ExpandPath("./images")#"
    imageurl="/images/index.html"
    upload="true"
    tabview="true">#form.body#</cf_activedit>

That's it, you now have the ability to edit your blog with a WYSIWYG HTML Editor, and upload images.

If you prefer you can download a copy of editor.cfm here: http://www.cfdev.com/activedit/cf/blogCFC.txt

Notes:

This article was written against version 3 of BlogCFC (specifically version 352).

Search Knowledge Base:
Sign up for our newsletter: | Subscribe with RSS: RSS
© ActivSoftware 1999 to 2005 | Privacy Statement