<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(開啟文件上傳功能)
    添加標(biāo)簽定義:
    <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等的值替換成以下內(nèi)容:
    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>

    <%--
    三種方法調(diào)用FCKeditor
    1.FCKeditor自定義標(biāo)簽 (必須加頭文件 <%@ taglib uri="/FCKeditor" prefix="FCK" %> )
    2.script腳本語言調(diào)用 (必須引用 腳本文件 <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script> )
    3.FCKeditor API 調(diào)用 (必須加頭文件 <%@ 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 保爾任 閱讀(609) 評論(0)  編輯  收藏 所屬分類: open source

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(4)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲成_人网站图片| 亚洲AV综合色区无码一区| 亚洲一区二区三区91| 99视频有精品视频免费观看| 亚洲精品自在在线观看| 国产成人1024精品免费| 亚洲人成网亚洲欧洲无码久久| 成人网站免费大全日韩国产| 亚洲日韩精品一区二区三区无码 | 国产一区二区视频免费| 亚洲精品无码av中文字幕| 日韩免费视频网站| 激情小说亚洲图片| 亚洲国产天堂久久久久久| 一级午夜a毛片免费视频| 国产亚洲精品成人a v小说| 成人性做爰aaa片免费看| 亚洲午夜久久久精品影院| 18女人腿打开无遮掩免费| 亚洲伦理一二三四| 黄a大片av永久免费| 色爽黄1000部免费软件下载| 亚洲欧洲成人精品香蕉网| 亚洲精品免费观看| 日本亚洲免费无线码 | 亚洲午夜国产片在线观看| 97在线视频免费公开视频| 久久精品国产亚洲AV高清热| 四虎影院免费在线播放| 一级做a爱过程免费视频高清| 亚洲va久久久噜噜噜久久狠狠| 天天影视色香欲综合免费| 亚洲精品女同中文字幕| 亚洲精品高清国产一线久久| 日本h在线精品免费观看| 久久人午夜亚洲精品无码区| 精品久久香蕉国产线看观看亚洲| 国产91色综合久久免费| 国产亚洲综合久久| 亚洲一本综合久久| 免费国产综合视频在线看 |