java fckeditor下载,Fckeditor与Java web 整合代码

岳浩宕
2023-12-01

首先 下载所需的jar文件

1.FCKeditor-2.6.3.zip下载

2.fckeditor-java-2.4-bin.zip下载

3.fckeditor-java-2.4-src.zip下载

其次,建立 工程 Fckeditor工程

1.将FCKeditor_2.6.3.zip解压到webroot下

2.将以下jar文件添加到lib库

fckeditor-java-core-2.4.1.jar

commons-fileupload-1.2.1.jar

commons-io-1.3.2.jar

slf4j-api-1.5.2.jar

slf4j-******-1.5.2.jar

再次,修改fckeditor配置

最后,调用fckeditor

调用方法如下:

1.

var oFCKeditor = new FCKeditor("FCKeditor1");

//oFCKeditor.BasePath = /站名称/+fckeditor/

oFCKeditor.BasePath="/Fckeditor/fckeditor/";

oFCKeditor.Create();

2.

window.onload = function()

{

var oFCKeditor = new FCKeditor("MyTextarea");

//oFCKeditor.BasePath = /站名称/+fckeditor/

oFCKeditor.BasePath="/Fckeditor/fckeditor/";

oFCKeditor.ReplaceTextarea();

}

初始值!

 类似资料: