Fckeditor的使用(五):配置语言
1.创建myconfig.js
内容:
FCKConfig.AutoDetectLanguage = false ;
FCKConfig.DefaultLanguage = "en" ;
注:语言设为英文,默认是中文的。
2.配置myconfig.js
方法一 :修改WebRoot/fckeditor/fckconfig.js中的FCKConfig.CustomConfigurationsPath = '' ;为FCKConfig.CustomConfigurationsPath = '项目名/myconfig.js' ;
方 法二 :
<script type="text/javascript">
? ??? ??? //第一种方法
??? ??? var oFCKeditor = new FCKeditor('FCKeditor1');
??? ??? oFCKeditor.BasePath = "<%=request.getContextPath()%>/fckeditor/";
??? ??? oFCKeditor.Width = "70%";
??? ??? oFCKeditor.Height = "150";
??? ??? oFCKeditor.Value = "default"
??? ??? //此处设置配置
??? ??? oFCKeditor.Config["CustomConfigurationsPath"] = "<%=request.getContextPath()%>/myconfig.js"? ;
??? ??? oFCKeditor.Create();
??? </script>