Skip to main content
Participant
May 13, 2010
Question

CFTextArea Language Support

  • May 13, 2010
  • 1 reply
  • 564 views

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>

<cfscript>

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...

    This topic has been closed for replies.

    1 reply

    Participant
    May 18, 2010

    I can add one more piece of information about the Firefox problem.

    With a lot of trial and error I have discovered that by going back version by version to Firefox 3.5.6 that the toolbars display properly.  Tested on Windows and Mac.  So, if Mozilla will repair their poor implementation of Java, this portion of the problem will go away.

    Then, if the Adobe ColdFusion team would add a tag option to CFTEXTAREA to select a language we'd have the best of all worlds.

    I can't believe that I am the only one in this forum using CFTEXTAREA with multiple languages.  I now support English, Russian, Polish, French and Spanish.