Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Formatting the cfinput richtext area

Posted on 2009-04-19
2
Medium Priority
?
458 Views
Last Modified: 2013-12-24
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
Comment
Question by:Short-Order-Coder
  • 2
2 Comments
 
LVL 27

Expert Comment

by:azadisaryev
ID: 24181911
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
 
LVL 27

Accepted Solution

by:
azadisaryev earned 2000 total points
ID: 24181925
PS: at the very least, add toolbar="basic" to your <cftextarea> tag - this will display a toolbar with a fewer buttons.

Azadi
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 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