Tag: FCK预览模式: 普通 | 列表
09-02
17

JSP中fckeditor控件-文件类型与大小的控制

(一)文件类型的控制
此处只是演示图片类型的控制,其它的控制需要查看WebRoot/fckeditor/editor/dialog/下面对应的 js文件
fckeditor.properties写法参考fckeditor-java-core-2.4.1.jar/net.fckeditor.handlers/net.fckeditor.handlers/default.properties文件
myconfig.js写法参考WebRoot/fckeditor/fckconfig.js文件

如果想添加一种新的图片类型如.abc,修改方式如下:
在fckeditor.properties添加属性connector.resourceType.image.extensions.allowed = bmp|gif|jpeg|jpg|png|abc
在myconfig.js中添加FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp|abc)$" ;

查看更多...

Tags: FCK

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 508
09-02
17

判断FCKeditor内容是否为空

1.     <script language="javascript">  

2.     <!--  

3.     function checkForm(){  

4.       var Content =FCKeditorAPI.GetInstance("content").GetXHTML();  

5.         if(Content==null||Content==""){  

查看更多...

Tags: FCK

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 469
08-08
25

JS验证FCK内容是否为空

function CheckPost(){
try{
   if (GetMessageLength()==0){
         alert("内容不能为空!")
         return false
   }
  }
  catch(e){
    if (Trim(document.forms[0].Message.value)=="") {

查看更多...

Tags: FCK

分类:Ajax/Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1339
08-06
14

FCKeditor编辑器上传按钮不好使

      情况:当把目录/editor和fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml四个文件放置在根目录下,此时按钮正常,新建文件夹FCKeditor,把上述文件放置其中,并设置 oFCKeditor.setBasePath("FCKeditor/") ;,编辑器显示,但上传按钮不好使。

    解决办法:检查web.xml,在其中加入
  <servlet-mapping>
    <servlet-name>Connector</servlet-name>
    <url-pattern>/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>
  </servlet-mapping>
  
  <servlet-mapping>

查看更多...

Tags: FCK 编辑器 FCKeditor

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 494
08-04
28

FCK配置及扩展攻略

    本文的主要的特点就是考虑到了两个平台:linux和windos;考虑了两个服务器:apache和resin。主要讲述了里面的配置方法和测试用例,并没有详细的讲述什么瘦身,什么其他安全配置等等。

    本文的修改针对的是resin3.0和apache2.2;windows xp(本机)和redhat AS4(具有特定配置的修改)。具体的配置方法如下:

1、安装包选择

本次配置中使用了FCKeditor2.6和FCKeditor.java 2.3。可以在http://www.fckeditor.net/download下载得到。

2、初步配置

查看更多...

Tags: FCK 配置 扩展

分类:Java&Jsp | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1021
08-04
28

FAIL - Application at context path / could not be started

    今天把程序发布上去之后,在tomcat控制面板上面点击Start,结果显示:FAIL - Application at context path / could not be started。
   错误原因:web.xml信息有错。PS:这两天不一直在修改fck嘛,结果web.xml中没有配置到fck标签..

查看更多...

Tags: FCK FAIL web.xml

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2437