?
Solved

ColdFusion richtext textarea

Posted on 2010-01-01
3
Medium Priority
?
915 Views
Last Modified: 2012-05-08
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
Comment
Question by:larry_stephens
3 Comments
 
LVL 9

Expert Comment

by:Andrew Maurer
ID: 26159524
Try removing the attribute "richtext" and use html="true"
0
 

Accepted Solution

by:
larry_stephens earned 0 total points
ID: 26161739
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
 
LVL 16

Expert Comment

by:Gurpreet Singh Randhawa
ID: 26164231
Well You might try it like this:

<cftextarea name="whatecver" richtext="yes" toolbar="Basic" toolbaronfocus="yes" value="#thevalue#"></cftextarea>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
While opting for any web-to-print solution, you need to discuss with your team and some of your end users and know their opinions about your decisions. In this article we list down some questions you need to ask yourself.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question