<cfcomponent extends="farcry.core.packages.formtools.richtext" name="richtext" displayname="Rich Text Editor" hint="Used to liase with longchar type fields">
<cffunction name="getConfig" access="public" output="false" returntype="string" hint="This will return the configuration that will be used by the richtext field">
<cfset var configJS = "" />
<cfsavecontent variable="configJS">
<cfoutput>
theme : "advanced",
plugins : "table,advhr,farcrycontenttemplates,advimage,advlink,preview,zoom,searchreplace,print,contextmenu,paste,directionality,fullscreen", <!--- farcryimage --->
theme_advanced_buttons2_add : "separator,farcrycontenttemplates",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "separator,fullscreen,pasteword,pastetext",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
theme_advanced_resize_horizontal : true,
theme_advanced_resizing : true,
extended_valid_elements: "textarea[name|class|cols|rows],script[type],img[style|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]",
remove_linebreaks : false,
relative_urls : false
</cfoutput>
</cfsavecontent>
<cfreturn configJS />
</cffunction>
</cfcomponent>
|