cfmodule与firefox的错误结果

时间:2013-03-12 14:15:52

标签: coldfusion fckeditor

在coldfusion 8中,我使用下面的代码来查看数据库表中的“UserDesc”字段数据,这些数据在IE和Chrome上运行良好但在Firefox上没有。在Firefox上,它不会显示在fckeditor上,而是显示在textarea上。请提出任何代码更改建议。

<cfmodule
                template="fckeditor/fckeditor.cfm"
                basePath="../views/fckeditor/"
                instanceName="Question"
                value='#UrlDecode(UserDesc)#'
                width="530"
                height="260">

1 个答案:

答案 0 :(得分:1)

有一些新方法可以在Coldfusion中使用ckeditor。你可以使用以下(这可能只是cf9 +,我不确定):

    <cftextarea name="Question" id="Question" 
        richtext="yes" 
        value="#UrlDecode(UserDesc)#">
    </cftextarea>

或者你可以在这里使用javascript one demo(这适用于任何版本的coldfusion):http://ckeditor.com/demo你只需要将你的值放在开始和结束文本区域标签之间。

相关问题