Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Attribute

Description

Default Value

ftImageArrayField

Array property in content type containing available images. Is used to populate tinyMCE's external_image_list_url value.

For example, aobjectids in dmHTML

ftImageTypename

The content type representing the image library.

For example, dmImage in dmHTML

ftImageField

The specific field or property in the nominated image library type that holds the file path for the image to be inserted. Note this can be overriden using "insert templates".

For example, dmImage.standardImage in dmHTML.

ftConfig

Option to override default tinyMCE config. Currently looks for application.config.#ftConfig#, but this will be replaced with a reference to a specific function local to the calling content type.

Defaults to a popular collection of plugins and settings.

ftTemplateTypeList

List of content types nominated to provide HTML insert options for tinyMCE editor. Each type must have at least one "insert webskin" associated with it.

For example, in dmHTML dmImage, dmFile, dmNavigation, and other dmHTML content items can be directly associated with the content.

ftTemplateWebskinPrefixList

The filename prefix used to determine suitable "insert webskins" for the nominated template types.

For example, insertHTML.

ftTemplateSnippetWebskinPrefix

The content type using hte rich text editor may have some predefined content snippets for use by content contributors. This prefix allows the developer to filter the available list of snippets for the specific instance of the editor.

For example, insertSnippet.

ftLinkListRelatedTypenames

a list of types that if any objects of that type are related to the current object via an array property, a link to that object will be presented in the richtext popup link list

For example, "dmFile,dmFlash,dmLink"

Example Usage

The body field is bound to the aObjectIDs property populating both the Image button drop down and the FarCry button panel display.

Code Block
titledmHTML body property
<cfproperty name="Body" type="longchar" hint="Main body of content." required="no" default="" 
	ftSeq="12" ftWizzardStep="Body" ftFieldset="Body" 
	ftType="richtext" ftLabel="Body" 
	ftImageArrayField="aObjectIDs" ftImageTypename="dmImage" ftImageField="StandardImage" 
	ftTemplateTypeList="dmImage,dmFile,dmNavigation,dmHTML" ftTemplateWebskinPrefixList="insertHTML"
	ftTemplateSnippetWebskinPrefix="insertSnippet">
<cfproperty ftSeq="13" ftwizardStep="Body" ftFieldset="Relationships" name="aObjectIDs" type="array" 
	hint="Holds objects to be displayed at this particular node.  Can be of mixed types." required="no" default="" 
	ftLabel="Associated Media" ftJoin="dmImage,dmFile,dmFlash" bSyncStatus="true">

An alternative example where a dedicated image array is bound.

Code Block

<cfproperty ftSeq="12" ftfieldset="Content" ftwizardStep="Overview" name="description" type="longchar" 
	hint="Main body of content." required="no" default="" ftType="richtext" ftLabel="Description" 
	ftImageArrayField="aMedia" ftImageTypename="dmImage" ftImageField="StandardImage"
	ftTemplateTypeList="dmImage" ftTemplateWebskinPrefixList="insertHTML"
	ftTemplateSnippetWebskinPrefix="insertSnippet">

<cfproperty ftSeq="13" ftfieldset="Content" ftwizardStep="Overview" name="aMedia" type="array" 
	hint="Associated image assets." required="no" default="" 
	ftLabel="Image Media" ftJoin="dmImage" bSyncStatus="true">

Changing the Default Configuration

getConfig function

The getConfig function can be extended to provide your project with customisable configuration options. Details of tinyMCE configuration options are availble at: http://wiki.moxiecode.com/index.php/TinyMCE:Configuration

...