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

Formatting the cfinput richtext area

I am building a form.  I would like to use the RTE cfinput attribute, but it gives me WAY too many buttons (see screenshot).

How do I control which buttons are used in the toolbars?

Also, does this save the copy as html in the a blob element of a mysql field.

Thanks Experts!
<cfinclude TEMPLATE="adminHeader.cfm">
<div style="width:600px; text-align:left;">
<cfform>
<fieldset style="background-color:#CCC;">
<legend>New Question</legend>
 
<p><label for="questNumb">Question Number</label><cfinput NAME="questNumb" TOOLTIP="Question order during the test" TYPE="TEXT" SIZE="4" VALIDATE="INTEGER"></p>
 
<p><label for="questCopy">Question Copy</label><br />
<cftextarea NAME="questCopy" REQUIRED="yes" TOOLTIP="Enter The Question Here" RICHTEXT="YES" COLS="65" ROWS="10"></cftextarea></p>
 
<p><label for="ansA">A</label>
<cfinput NAME="ansA" TYPE="TEXT"></p>
 
<p><label for="ansB">B</label>
<cfinput NAME="ansB" TYPE="text"></p>
 
<p><label for="ansC">C</label>
<cfinput NAME="ansC" TYPE="TEXT"></p>
 
<p><label for="ansD">D</label>
<cfinput NAME="ansD" TYPE="TEXT"></p>
 
<p><label for="ansR">Correct Answer</label><br />
<cfselect NAME="ansR">
	<option value="A">A</option>
	<option value="B">B</option>
	<option value="C">C</option>
	<option value="D">D</option>
</cfselect></p>
<p><cfinput NAME="submit" TYPE="SUBMIT" VALUE="Save Question" VALIDATE="SUBMITONCE"></p>
</fieldset>
</cfform>
</div>

Open in new window

bloatedRTE.png
0
Short-Order-Coder
Asked:
Short-Order-Coder
  • 2
1 Solution
 
azadisaryevCommented:
it's really all covered in the CFML reference manual and CF Developers Guide.

if you do not have them - download free PDFs from adobe.com:
http://www.adobe.com/support/documentation/en/coldfusion/

and Rakshith (from CF dev team) has a very good blog post about CF8 richtext editor:
http://www.rakshith.net/blog/?p=22

Azadi
0
 
azadisaryevCommented:
PS: at the very least, add toolbar="basic" to your <cftextarea> tag - this will display a toolbar with a fewer buttons.

Azadi
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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