<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 73,  comments - 55,  trackbacks - 0

    1.下載
    FCKeditor.java 2.3 (FCKeditot for java)
    FCKeditor 2.2 (FCKeditor基本文件)

    2.建立項目:tomcat/webapps/FCKeditor

    3.FCKeditor.java 2.3解壓后,把其中的web目錄下的WEB-INF目錄copy到FCKeditor下(里面有commons-fileupload.jar, FCKeditor-2.3.jar,web.xml等幾個文件), 把其中的src目錄下的FCKeditor.tld文件copy到FCKeitor/WEB-INF/下


    4.修改web.xml:
    把SimpleUploader中的配置屬性enabled定義為true(開啟文件上傳功能)
    添加標簽定義:
    <taglib>
    <taglib-uri>/FCKeditor</taglib-uri>
    <taglib-location>/WEB-INF/FCKeditor.tld</taglib-location>
    </taglib>

    5.解壓FCKeditor2.2后,把目錄/editor和fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml四個文件copy到/FCKeditor下
    刪除目錄/editor/_source,
    刪除/editor/filemanager/browser/default/connectors/下的所有文件
    刪除/editor/filemanager/upload/下的所有文件
    刪除/editor/lang/下的除了fcklanguagemanager.js, en.js, zh.js, zh-cn.js四個文件的所有文件

    6.打開/FCKeditor/fckconfig.js
    修改 FCKConfig.DefaultLanguage = 'zh-cn' ;
    把FCKConfig.LinkBrowserURL等的值替換成以下內容:
    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' ;

    7.添加文件 /FCKeditor/test.jsp:
    <%@ page language="java" import="com.fredck.FCKeditor.*" %>
    <%@ taglib uri="/FCKeditor" prefix="FCK" %>
    <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>

    <%--
    三種方法調用FCKeditor
    1.FCKeditor自定義標簽 (必須加頭文件 <%@ taglib uri="/FCKeditor" prefix="FCK" %> )
    2.script腳本語言調用 (必須引用 腳本文件 <script type="text/javascript" src="/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="/FCKeditor/" width="700" height="500" skinPath="/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 = "/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( "/FCKeditor/" ) ;
    oFCKeditor.setValue( "input" );
    out.println( oFCKeditor.create() ) ;
    %>
    <br>
    <input type="submit" value="Submit">
    </form>
    --%>


    添加文件/FCKeditor/show.jsp:
    <%
    String content = request.getParameter("content");
    out.print(content);
    %>

    8.瀏覽 http://localhost:8080/FCKeditor/test.jsp
    ok!

    9.上傳遇到錯誤: internal server error 500,
    直接引用servlet(com.fredck.FCKeditor.connector.ConnectorServlet)也遇到錯誤: "Provider org.apache.xalan.processor.TransformerFactoryImpl not found",
    拷貝xalan.jar到lib目錄就可以了

    posted on 2006-07-17 15:20 保爾任 閱讀(618) 評論(0)  編輯  收藏 所屬分類: open source

    <2025年7月>
    293012345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    常用鏈接

    留言簿(4)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 久久成人永久免费播放| 国产精品久久久亚洲| 久久精品无码专区免费| 永久黄网站色视频免费直播| 激情内射亚洲一区二区三区爱妻| 鲁大师在线影院免费观看| 亚洲AV无码专区在线播放中文| 亚洲电影在线播放| 中文字幕免费视频| 亚洲一区二区三区夜色 | 亚洲视频一区在线| 51视频精品全部免费最新| 亚洲影院在线观看| 国产精品怡红院永久免费| 亚洲va成无码人在线观看| A级毛片内射免费视频| 亚洲日本中文字幕一区二区三区| 男人免费视频一区二区在线观看| 亚洲国产成人爱av在线播放| 黄色视频在线免费观看| 亚洲av无码专区在线播放| 亚洲免费视频观看| 亚洲色无码国产精品网站可下载| 黄色网页在线免费观看| 亚洲AV无码精品无码麻豆| a拍拍男女免费看全片| 亚洲欧美国产精品专区久久| 免费国产小视频在线观看| 丝袜足液精子免费视频| 免费中文字幕不卡视频| 精品熟女少妇aⅴ免费久久| 亚洲视频精品在线| 日韩精品免费一线在线观看| 亚洲精品无码MV在线观看| 中文字幕亚洲免费无线观看日本| 国产AV旡码专区亚洲AV苍井空| 2021在线永久免费视频| 亚洲中文字幕无码亚洲成A人片| 亚洲国产成人精品女人久久久 | 在线免费观看你懂的| 亚洲日本天堂在线|