Rich Text Editor

Rich Text Editor

Rich Text Editor

Displays wyswyg editor with farcry plugins to add images, files, videos etc

Examples

Example from dmHTML in farcry core
<cfproperty 
    name="Body" type="longchar" hint="Main body of content." required="no" default="" 
    ftSeq="12" ftwizardStep="Body" ftFieldset="Body" ftLabel="Body" 
    ftType="richtext" 
    ftImageArrayField="aObjectIDs" ftImageTypename="dmImage" ftImageField="StandardImage"
    ftTemplateTypeList="dmImage,dmFile,dmFlash,dmNavigation,dmHTML" ftTemplateWebskinPrefixList="insertHTML"
    ftLinkListFilterRelatedTypenames="dmFile,dmNavigation,dmHTML"
    ftTemplateSnippetWebskinPrefix="insertSnippet">

Formtool Metadata

Attributes

Name Default Options Required Hint
ftAjaxMethod No The function that will be used to render the html output for ajax requests of a property
ftClass No CSS Class that can be used on the formtool input
ftContentCSS No This option enables you to specify a custom CSS file that extends the theme content CSS. This CSS file is the one used within the editor (the editable area). This option can also be a comma separated list of URLs.
ftDisplayMethod No The function that will be used to render the html output for displaying a property
ftEditMethod No The function that will be used to render the html output for editing a property
ftFieldset No Used if you are relying on the framework to render your form. Used to group the fields into HTML fieldsets.
ftHeight 280px No Height required for the rich text editor.
ftImageListFilterProperty standardImage No The related image typename property that contains the image we want to insert from the advimage plugin
ftImageListFilterTypename dmImage No The related image typename to show in the image list from the advimage plugin.
ftLabel No Used by the FarCry form layout as the label of the form field. This will default to the [name].
ftLabelAlignment inline inline, block No Used by FarCry Form Layouts for positioning of labels. inline or block.
ftLinkListFilterTypenames No The list of related typenames to filter the link list on in the advlink plugin.
ftRichtextConfig No A custom method to use to load the richtext config.
ftSeq No Used if you are relying on the framework to render your form. Used to sort the fields on the form.
ftStyle No CSS Style that can be used on the formtool input
ftType No Tells the framework which of the formtool ui components to use when rendering your form. This will default to the [type].
ftValidateMethod No The function that will be used to render the html output for validating (processing) a property form submission
ftValidation No List of CSS classes that can be used for js validation
ftWidth 100% No Width required for the rich text editor.
ftWizardStep No Used if you are relying on the framework to render your form. Used to setup a wizard which is a multi step form process.