cftextarea - rich text area with basic toolbar
cftextareaRichText.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cftextarea tag: how to use rich text area with basic toolbar in coldfusion</title>
</head>
<body>
<h2 style="color:SaddleBrown; font-style:italic">cftextarea example: how to use rich text area</h2>
<hr width="450" align="left" color="SaddleBrown" />
<br />
<cfif IsDefined("Form.SubmitColors")>
<cfoutput>
<h3 style="color:DeepPink;">
Your favorite colors are: #Form.Colors#
</h3>
</cfoutput>
</cfif>
<cfform name="RichTextAreaTest" method="post" format="html">
<table border="1" cellpadding="5" cellspacing="0" bordercolor="CornFlowerBlue">
<tr>
<td colspan="2" bgcolor="DodgerBlue" style="color:Snow; font-size:large" align="center">
Favorite Colors Submit Form
</td>
</tr>
<tr valign="top">
<td style="color:DodgerBlue; font-weight:bold">
Favorite Colors
</td>
<td width="250">
<cftextarea
name="Colors"
required="yes"
message="Colors required."
richtext="yes"
toolbar="Basic"
/>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<cfinput
name="SubmitColors"
type="submit"
value="Submit"
style="height:45px; width:150px; font-size:large; font-style:italic; font-weight:bold; color:DodgerBlue;"
>
</td>
</tr>
</table>
</cfform>
</body>
</html>