Adobe COLDFUSION 9 Manual page 846

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Follow these rules when you define a toolbar:
• Start the definition with FCKConfig.ToolbarSets.
• Specify the toolbar name in double quotation marks and brackets ([""]). Use this name, case correct, in the
tag
cftextarea
toolbar
• Follow the toolbar name with an equal sign (=).
• Place all the toolbar controls inside a set of brackets, and follow the definition with a semicolon (;).
• Group controls in brackets.
• Place each entry in single quotation marks (') and separate the entries with commas (,).
• Use the hyphen (-) character to specify a separator.
• Use a forward slash (/) character to start a new row.
For a complete list of the valid toolbar entries, see the
Defining custom styles
You can add custom styles that users choose in the Styles selector and apply to selected text. To create a custom style,
add a
element to /CFIDE/scripts/ajax/FCKEditor/fckstyles.xml. The
Style
format:
• The
attribute specifies the name that appears in the Style selector.
name
• The
attribute specifies the HTML element that surrounds the text.
element
• Each
child element defines the
Attribute
For example, the following definition creates a style that makes the selected text bold and underlined:
<Style name="Custom Bold And Underline " element="span">
<Attribute name="style" value="font-weight: bold; text-decoration: underline;"/>
</Style>
If you use a custom XML file, instead of fckstyles.xml, to define your styles, specify the filepath in the
attribute.
Defining custom templates
The editor includes a set of basic templates that insert HTML formatting into the
template places a placeholder for an image on the left of the area, and a title and text to the right of
ImageandTitle
the image. Then right-click the image area to specify the image source and other properties, and replace the
placeholder title and text.
You create your own templates by creating entries in cf_webRoot/CFIDE/scripts/ajax/FCKEditor/fcktemplates.xml
file. Each template XML entry has the following format:
<Template title="template title" image="template image">
<Description>template description</Description>
<Html>
<![CDATA[
HTML to insert in the text area when the user selects the template.
]]>
</Html>
</Template>
The template title, image, and description appear in the Templates dialog box that appears when the user clicks the
template icon on the rich text editor toolbar.
attribute.
Default
and
name
value
Last updated 8/5/2010
configuration in fckconfig.js.
XML element has the following
Style
of an attribute of the HTML tag.
textarea
841
stylesXML
control. For example, the

Advertisement

Table of Contents
loading

Table of Contents