CFTextArea Language Support
CFTextArea does not seem to support foreign languages like FCKeditor used to. The capabilities were included, but no tag option for it. As a result I am using this code to call the FCKeditor within CF9.
<cfif #getlang.default_language# eq "E">
<cfset #fck_language# = "en">
<cfelse>
<cfset #fck_language# = "ru">
</cfif>
basePath = "#fckeditor_baseurl#";
fckEditor = createObject( "component", "#basePath#fckeditor" );
fckeditor.config["CustomConfigurationsPath"] = "delaportal_fckeditor.js";
fckEditor.instanceName = "description";
fckEditor.value = "#description#";
fckEditor.basePath = basePath;
fckEditor.width = "100%";
fckEditor.height = 250;
fckEditor.ToolbarSet = 'delaportal';
if ( isDefined( "fck_language" ) )
{
fckEditor.config["AutoDetectLanguage"] = false;
fckEditor.config["DefaultLanguage"] = HTMLEditFormat( fck_language );
}
else
{
fckEditor.config["AutoDetectLanguage"] = true;
fckEditor.config["DefaultLanguage"] = 'en';
}
fckEditor.Create();
</cfscript>
This is actually working perfectly, except for one small detail. Since Firefox 3.6 the WYSIWYG portion no longer works. This is true on all platforms running Firefox 3.6+. All other browsers, on all other platforms seem to QA fine.
Any ideas, anyone? Please...
