當(dāng)前訪問(wèn)本站: hits

          yjhmily

          堅(jiān)持走自己的路……

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            100 Posts :: 8 Stories :: 353 Comments :: 0 Trackbacks
          一個(gè)偶然的機(jī)會(huì)發(fā)現(xiàn)了FCKeditor,非常非常的不錯(cuò)!


          FCKeditor是sourceforge.net上面的一個(gè)開(kāi)源項(xiàng)目。
          一個(gè)強(qiáng)大的HTML文本編輯插件,主要實(shí)現(xiàn)了在線網(wǎng)頁(yè)編輯的功能!
          操作起來(lái)就跟MS WORD一樣簡(jiǎn)單!
          據(jù)我所知,F(xiàn)CKeditor是目前互聯(lián)網(wǎng)上最好的編輯器,功能強(qiáng)大,支持多種瀏覽器,無(wú)平臺(tái)限制,可以和多種WEB語(yǔ)言融合,多語(yǔ)言支持,開(kāi)源等~~


          下面是官方的介紹
          This HTML text editor brings to the web many of the powerful functionalities of desktop editors like MS Word. It's lightweight and doesn't require any kind of installation on the client computer.
          Because it is Open Source, you may use it however you want.

          FCKeditor is now a “must have” editor. This version is even more stable, with many important bug fixings and new features, including native support for Python. Important additions have been also made to the JavaScript API.
          With no doubts, FCKeditor is the most used web browser based text editor in the market, with almost 50,000 downloads monthly. This version comes to certify the quality and affordability of this project. Enjoy FCKeditor and have a Happy New Year!

          FCKeditor is compatible with most internet browsers which include: IE 5.5+ (Windows), Firefox 1.0+, Mozilla 1.3+ and Netscape 7+.? On the server side, FCKeditor offers a complete integration pack for: ASP.Net、ASP、PHP、ColdFusion、Java、Perl
          The editor runs over Windows, Mac and Linux operating systems.

          下載或者查看詳情請(qǐng)?jiān)L問(wèn):http://www.fckeditor.net;

          目前官方推薦的穩(wěn)定版本是FCKeditor 2.3.1,最近我在官方又看到已經(jīng)有了FCKeditor.Java 2.3版本了;
          對(duì)用JAVA開(kāi)發(fā)的朋友來(lái)說(shuō)無(wú)疑是再開(kāi)心不過(guò)了!

          了解了該編輯器,下面再來(lái)看看具體應(yīng)該怎么用吧!
          我是學(xué)java的,在自己的工程里面試用了用一下FCKeditor,感覺(jué)確實(shí)不錯(cuò),這里我簡(jiǎn)單介紹一下
          (僅針對(duì)windows操作系統(tǒng)用Eclipse開(kāi)發(fā)的java web工程)

          一、下載FCKeditor;

          ??? 需要下載兩個(gè)包:
          ??? 1、FCKeditor_2.3.1.zip?? 地址:http://www.fckeditor.net/download/default.html
          ???? ??? 2、FCKeditor-2.3.zip?? 地址:http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=129511

          二、在Eclipse里面新建一個(gè)工程,然后把上面兩個(gè)包的部分文件(對(duì)你有用的)考進(jìn)工程相應(yīng)目錄,

          ??? 1、解壓縮FCKeditor-2.3.zip,在FCKeditor-2.3\web\WEB-INF\lib里面你會(huì)看到commons-fileupload.jar和FCKeditor-2.3.jar這兩個(gè)jar包,考入你工程里面的\workspace\yjhmily\WebRoot\WEB-INF\lib(yjhmily是我的工程名)中,其中commons-fileupload.jar已經(jīng)存在,覆蓋就行了!
          ??? 2、解壓縮FCKeditor_2.2.zip,在\FCKeditor_2.2\FCKeditor中你會(huì)看到一個(gè)editor文件夾,這里面放的是一些必須的HTML、JS、skin、images、css……等文件,將整個(gè)文件夾考入你工程里面的\workspace\yjhmily\WebRoot\FCKeditor\editor中,其中FCKeditor是我自己建的目錄,便與標(biāo)識(shí)。當(dāng)然,你也可以直接把editor文件夾考到WebRoot目錄下。
          ??? 3、將\FCKeditor_2.2\FCKeditor中的fckconfig.js、fckeditor.afp、fckeditor.cfc、fckeditor.cfm、fckeditor.js、fckeditor.lasso、fckstyles.xml、fcktemplates.xml全部考入\workspace\yjhmily\WebRoot\FCKeditor下。其實(shí)只要保證這些文件跟editor在同一目錄下就可以了!

          三、我的工程結(jié)構(gòu)圖:

          fck.jpg

          四、一切OK,可以寫(xiě)一個(gè)JSP頁(yè)面自己感受一下了。

          ??? 你只需要在JSP頁(yè)面中寫(xiě)入以下這段代碼就可以調(diào)用FCKeditor編輯器了!跟使用Struts的標(biāo)簽一樣方便。(FCKeditor-2.3.zip中有很詳細(xì)的例子)
          ???
          ??? <FCK:editor id="EditorDefault" basePath="/FCKeditor/"
          ??? ??? imageBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
          ??? ??? linkBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
          ??? ??? flashBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
          ??? ??? imageUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
          ??? ??? linkUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
          ??? ??? flashUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
          This is some <strong>sample text</strong>. You are using <a >FCKeditor</a>.
          ??? </FCK:editor>???

          五、FCK效果圖

          pic.jpg


          以上只是我個(gè)人對(duì)FCKeditor的理解,希望各位網(wǎng)友指點(diǎn)。

          posted on 2006-09-21 11:28 kangxm 閱讀(4505) 評(píng)論(2)  編輯  收藏 所屬分類: 開(kāi)發(fā)環(huán)境&工具

          Feedback

          # re: FCKeditor——強(qiáng)大的HTML文本編輯插件 2006-09-21 16:07 123bingbing
          這里是全新的競(jìng)爭(zhēng)方式,讓你在無(wú)數(shù)的程序員中脫穎而出!www.mylinux.com  回復(fù)  更多評(píng)論
            

          # re: FCKeditor——強(qiáng)大的HTML文本編輯插件 2006-09-22 11:27 aladdin
          目前他上傳的路徑默認(rèn)為war包的路徑,因此如果重新部署會(huì)將原來(lái)上傳的文件刪除,目前的做法是在服務(wù)器上配置一個(gè)虛擬路徑映射到實(shí)際路徑,不知道能不能在項(xiàng)目中指定虛擬路徑到實(shí)際路徑的映射,類似與jira?  回復(fù)  更多評(píng)論
            

          主站蜘蛛池模板: 赤城县| 乃东县| 门头沟区| 枣强县| 容城县| 凤城市| 绥德县| 寿宁县| 荔波县| 莆田市| 尉犁县| 庆云县| 色达县| 庆安县| 渑池县| 龙川县| 万山特区| 乌苏市| 湘西| 九龙城区| 鸡西市| 唐海县| 财经| 高阳县| 靖远县| 陈巴尔虎旗| 朝阳区| 高邑县| 吉隆县| 新宁县| 栾川县| 台中县| 海晏县| 凤冈县| 柘城县| 台江县| 文安县| 洞头县| 华池县| 天气| 仙居县|