• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 930
  • Last Modified:

ColdFusion richtext textarea

Using ColdFusion 8.0.

Inside a form, <cftextarea richtext="true" name="Reading"></cftextarea> pops up a nice rich text edition (the CKEditor).

My problem is then displaying the rich text. My initial thought is:
<cfoutput><cfform><cftextarea name="Reading" richtext="true" disabled="true" >#GetReading.Reading#</cftextarea></cfform></cfoutput>

which does indeed display the text, but with all the controls you use when editing. I don't ant all those - just want to display the rich text.

?

0
larry_stephens
Asked:
larry_stephens
1 Solution
 
Andrew MaurerCommented:
Try removing the attribute "richtext" and use html="true"
0
 
larry_stephensAuthor Commented:
The answer was staring me in the face. This isn't a "rich text" editor in the sense of rich text as you would see in, say, MS Word. Turns out it is a rich text emulator and it's embedding html markup. You don't see that until you return the results in a certain way.

So, use the FCKeditor embedded in ColdFusion to create text but display it normally, i.e., (in CF) <cfoutput>#returned value#</cfoutput>
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
Well You might try it like this:

<cftextarea name="whatecver" richtext="yes" toolbar="Basic" toolbaronfocus="yes" value="#thevalue#"></cftextarea>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now