锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品入口免费视,农村寡妇一区二区三区,九九九九九九精品http://www.aygfsteel.com/J2EEHOME/articles/239873.htmlJ2EE Home宸ヤ綔瀹?/dc:creator>J2EE Home宸ヤ綔瀹?/author>Tue, 11 Nov 2008 06:29:00 GMThttp://www.aygfsteel.com/J2EEHOME/articles/239873.htmlhttp://www.aygfsteel.com/J2EEHOME/comments/239873.htmlhttp://www.aygfsteel.com/J2EEHOME/articles/239873.html#Feedback0http://www.aygfsteel.com/J2EEHOME/comments/commentRss/239873.htmlhttp://www.aygfsteel.com/J2EEHOME/services/trackbacks/239873.html1.涓嬭澆
FCKeditor.Java 2.3 (FCKeditot for java)
FCKeditor 2.2 (FCKeditor鍩烘湰鏂囦歡)

2.寤虹珛欏圭洰:tomcat/webapps/TestFCKeditor.

3.灝咶CKeditor2.2瑙e帇緙?灝嗘暣涓洰褰旻CKeditor澶嶅埗鍒伴」鐩殑鏍圭洰褰曚笅錛?br /> 鐩綍緇撴瀯涓猴細tomcat/webapps/TestFCKeditor/FCKeditor
鐒跺悗灝咶CKeditor-2.3.zip錛坖ava錛夊帇緙╁寘涓璡web\WEB-INF\lib\鐩綍涓嬬殑涓や釜jar鏂囦歡鎷峰埌欏圭洰鐨刓WEB-INF\lib\鐩綍涓嬨傛妸鍏朵腑鐨剆rc鐩綍涓嬬殑FCKeditor.tld鏂囦歡copy鍒癟estFCKedit/FCKeitor/WEB-INF/涓?/p>

4.灝咶CKeditor-2.3.zip鍘嬬緝鍖呬腑\web\WEB-INF\鐩綍涓嬬殑web.XML鏂囦歡鍚堝茍鍒伴」鐩殑\WEB-INF\鐩綍涓嬬殑web.xml鏂囦歡涓?/p>

5. 淇敼鍚堝茍鍚庣殑web.xml鏂囦歡錛屽皢鍚嶄負SimpleUploader鐨凷ervlet鐨別nabled鍙傛暟鍊兼敼涓簍rue錛?br /> 浠ョ瓟搴斾笂浼犲姛鑳斤紝Connector Servlet鐨刡aseDir鍙傛暟鍊肩敤浜庤緗笂浼犳枃浠跺瓨鏀劇殑浣嶇疆銆?br /> 娣誨姞鏍囩瀹氫箟:
<taglib>
<taglib-uri>/TestFCKeditor</taglib-uri>
<taglib-location>/WEB-INF/FCKeditor.tld</taglib-location>
</taglib>

榪愯鍥撅細

 

6. 涓婇潰鏂囦歡涓袱涓猻ervlet鐨勬槧灝勫垎鍒負錛?editor/filemanager/browser/default/connectors/jsp/connector
鍜?editor/filemanager/upload/simpleuploader錛岄渶瑕佸湪涓や釜鏄犲皠鍓嶉潰鍔犱笂/FCKeditor錛?br /> 鍗蟲敼涓?FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector鍜?br /> /FCKeditor/editor/filemanager/upload/simpleuploader銆?/p>

7.榪涘叆SKIN鏂囦歡澶癸紝鍋囧浣犳兂浣跨敤fckeditor榛樿鐨勮繖縐嶅ザ榛勮壊錛?br /> 閭e氨鎶婇櫎浜哾efault鏂囦歡澶瑰鐨勫彟涓や釜鏂囦歡澶圭洿鎺ュ垹闄?

8.鍒犻櫎/FCKeditor/鐩綍涓嬮櫎fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml鍥涗釜鏂囦歡浠ュ鐨勬墍鏈夋枃浠?
鍒犻櫎鐩綍/editor/_source,
鍒犻櫎/editor/filemanager/browser/default/connectors/涓嬬殑鎵鏈夋枃浠?br /> 鍒犻櫎/editor/filemanager/upload/涓嬬殑鎵鏈夋枃浠?br /> 鍒犻櫎/editor/lang/涓嬬殑闄や簡fcklanguagemanager.js, en.js, zh.js, zh-cn.js鍥涗釜鏂囦歡鐨勬墍鏈夋枃浠?/p>

9.鎵撳紑/FCKeditor/fckconfig.js
淇敼 FCKConfig.DefaultLanguage = 'zh-cn' ;
鎶奆CKConfig.LinkBrowserURL絳夌殑鍊兼浛鎹㈡垚浠ヤ笅鍐呭錛?br /> FCKConfig.LinkBrowserURL
= FCKConfig.BasePath + "filemanager/browser/default/browser.Html?Connector=connectors/jsp/connector" ;

FCKConfig.ImageBrowserURL
= FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" ;

FCKConfig.FlashBrowserURL
= FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" ;


FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=File' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Flash' ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Image' ;

 

10.鍏跺畠
fckconfig.js鎬婚厤緗枃浠訛紝鍙敤璁板綍鏈墦寮錛屼慨鏀瑰悗灝嗘枃浠跺瓨涓簎tf-8 緙栫爜鏍煎紡銆傛壘鍒幫細

FCKConfig.TabSpaces = 0 ; 鏀逛負FCKConfig.TabSpaces = 1 ; 鍗沖湪緙栬緫鍣ㄥ煙鍐呭彲浠ヤ嬌鐢═ab閿?/p>

鍋囧浣犵殑緙栬緫鍣ㄨ繕鐢ㄥ湪緗戠珯鍓嶅彴鐨勮瘽錛屾瘮濡傝鐢ㄤ簬鐣欒█鏈垨鏄棩璁板洖澶嶆椂錛岄偅灝變笉寰椾笉鑰冭檻瀹夊叏浜嗭紝
鍦ㄥ墠鍙板崈涓囦笉瑕佷嬌鐢―efault鐨則oolbar錛岃涔堣嚜瀹氫箟涓涓嬪姛鑳斤紝瑕佷箞灝辯敤緋葷粺宸茬粡瀹氫箟濂界殑Basic錛?br /> 涔熷氨鏄熀鏈殑toolbar錛屾壘鍒幫細
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-',/*'Link',*/'Unlink','-','Style','FontSize','TextColor','BGColor','-',
'Smiley','SpecialChar','Replace','Preview'] ] ;
榪欐槸鏀硅繃鐨凚asic錛屾妸鍥懼儚鍔熻兘鍘繪帀錛屾妸娣誨姞閾炬帴鍔熻兘鍘繪帀錛屽洜涓哄浘鍍忓拰閾炬帴鍜宖lash鍜屽浘鍍忔寜閽坊鍔犲姛鑳介兘鑳借鍓嶅彴
欏電洿鎺ヨ闂拰涓婁紶鏂囦歡錛?fckeditor榪樻敮鎸佺紪杈戝煙鍐呯殑榧犳爣鍙抽敭鍔熻兘銆?/p>

FCKConfig.ContextMenu = ['Generic',/*'Link',*/'Anchor',/*'Image',*/'Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField',
/*'ImageButton',*/'Button','BulletedList','NumberedList','TableCell','Table','Form'] ;

榪欎篃鏄敼榪囩殑鎶婇紶鏍囧彸閿殑“閾炬帴銆佸浘鍍忥紝FLASH錛屽浘鍍忔寜閽?#8221;鍔熻兘閮藉幓鎺夈?/p>

銆銆鎵懼埌錛?FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
鍔犱笂鍑犵鎴戜滑甯哥敤鐨勫瓧浣?
FCKConfig.FontNames
= '瀹嬩綋;榛戜綋;闅朵功;妤蜂綋_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;


7.娣誨姞鏂囦歡 /TestFCKeditor/test.jsp:
<%@ page language="java" import="com.fredck.FCKeditor.*" %>
<%@ taglib uri="/TestFCKeditor" prefix="FCK" %>
<script type="text/javascript" src="/TestFCKeditor/FCKeditor/fckeditor.js"></script>

<%--
涓夌鏂規(guī)硶璋冪敤FCKeditor
1.FCKeditor鑷畾涔夋爣絳?(蹇呴』鍔犲ご鏂囦歡 <%@ taglib uri="/TestFCKeditor" prefix="FCK" %> )
2.script鑴氭湰璇█璋冪敤 (蹇呴』寮曠敤 鑴氭湰鏂囦歡 <script type="text/javascript" src="/TestFCKeditor/FCKeditor/fckeditor.js"></script> )
3.FCKeditor API 璋冪敤 (蹇呴』鍔犲ご鏂囦歡 <%@ page language="java" import="com.fredck.FCKeditor.*" %> )
--%>

<%--
<form action="show.jsp" method="post" target="_blank">
<FCK:editor id="content" basePath="/TestFCKeditor/FCKeditor/"
width="700"
height="500"
skinPath="/TestFCKeditor/FCKeditor/editor/skins/silver/"
toolbarSet = "Default"
>
input
</FCK:editor>
<input type="submit" value="Submit">
</form>
--%>

<form action="show.jsp" method="post" target="_blank">
<table border="0" width="700"><tr><td>
<textarea id="content" name="content" style="WIDTH: 100%; HEIGHT: 400px">input</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "/TestFCKeditor/FCKeditor/" ;
oFCKeditor.Height = 400;
oFCKeditor.ToolbarSet = "Default" ;
oFCKeditor.ReplaceTextarea();
</script>
<input type="submit" value="Submit">
</td></tr></table>
</form>

<%--
<form action="show.jsp" method="post" target="_blank">
<%

FCKeditor oFCKeditor ;
oFCKeditor = new FCKeditor( request, "content" ) ;
oFCKeditor.setBasePath( "/TestFCKeditor/FCKeditor/" ) ;
oFCKeditor.setValue( "input" );
out.println( oFCKeditor.create() ) ;
%>
<br>
<input type="submit" value="Submit">
</form>
--%>


娣誨姞鏂囦歡/TestFCKeditor/show.jsp:
<%
String content = request.getParameter("content");
out.print(content);
%>

8.嫻忚http://localhost:8080/TestFCKeditor/test.jsp
ok!

 

璧勬枡寮曠敤:http://www.knowsky.com/371543.html



]]>
Common BeanUtils緇勪歡鐨勪嬌鐢紙婧愮爜錛?http://www.aygfsteel.com/J2EEHOME/articles/237924.htmlJ2EE Home宸ヤ綔瀹?/dc:creator>J2EE Home宸ヤ綔瀹?/author>Fri, 31 Oct 2008 16:03:00 GMThttp://www.aygfsteel.com/J2EEHOME/articles/237924.htmlhttp://www.aygfsteel.com/J2EEHOME/comments/237924.htmlhttp://www.aygfsteel.com/J2EEHOME/articles/237924.html#Feedback0http://www.aygfsteel.com/J2EEHOME/comments/commentRss/237924.htmlhttp://www.aygfsteel.com/J2EEHOME/services/trackbacks/237924.html闃呰鍏ㄦ枃

]]>
主站蜘蛛池模板: 额敏县| 京山县| 元江| 时尚| 石泉县| 迁安市| 微博| 新营市| 赞皇县| 铁岭市| 九台市| 香港| 东山县| 长沙市| 桐乡市| 健康| 陆河县| 镇江市| 华坪县| 洛宁县| 镇原县| 鲁山县| 汉源县| 嘉定区| 仁布县| 铅山县| 平安县| 定襄县| 烟台市| 绥德县| 航空| 阿巴嘎旗| 松溪县| 株洲县| 遵义县| 绥德县| 华坪县| 渝中区| 潢川县| 永定县| 葵青区|