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

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

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

    Java快速開(kāi)發(fā)平臺(tái)

    www.fastunit.com

      BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
      23 Posts :: 0 Stories :: 273 Comments :: 0 Trackbacks

     

    本文介紹FCKeditor在Java環(huán)境下的使用方法。

    一、簡(jiǎn)介

    功能:所見(jiàn)即所得,支持圖片和Flash,工具欄可自由配置,使用簡(jiǎn)單
    兼容性:IE 5.5+、Firefox 1.5+、Safari 3.0+、Opera 9.50+、Netscape 7.1+、 Camino 1.0+
    成熟度:使用廣泛,被Baidu、CSDN等選用

    二、下載

    官方下載首頁(yè):http://www.fckeditor.net/download/,當(dāng)前版本為2.5.1
    需要下載FCKeditor 2.5.1(FCKeditor_2.5.1.zip)和FCKeditor.Java(FCKeditor-2.3.zip

    三、部署

    本例以WebRoot作為應(yīng)用根路徑,部署后的目錄結(jié)構(gòu)如下圖所示:


    1、FCKeditor_2.5.1.zip解壓,將fckeditor文件夾復(fù)制到/WebRoot/下

    2、FCKeditor-2.3.zip解壓,將commons-fileupload.jar和FCKeditor-2.3.jar復(fù)制到/WebRoot/WEB-INF/lib/下

    3、修改/WebRoot/WEB-INF/web.xml文件,增加以下內(nèi)容:
        <servlet>
            
    <servlet-name>Connector</servlet-name>
            
    <servlet-class>com.fredck.FCKeditor.connector.ConnectorServlet</servlet-class>
            
    <init-param>
                
    <param-name>baseDir</param-name>
                
    <param-value>/UserFiles/</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>debug</param-name>
                
    <param-value>true</param-value>
            
    </init-param>
            
    <load-on-startup>1</load-on-startup>
        
    </servlet>

        
    <servlet>
            
    <servlet-name>SimpleUploader</servlet-name>
            
    <servlet-class>com.fredck.FCKeditor.uploader.SimpleUploaderServlet</servlet-class>
            
    <init-param>
                
    <param-name>baseDir</param-name>
                
    <param-value>/UserFiles/</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>debug</param-name>
                
    <param-value>true</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>enabled</param-name>
                
    <param-value>true</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>AllowedExtensionsFile</param-name>
                
    <param-value></param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>DeniedExtensionsFile</param-name>
                
    <param-value>php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>AllowedExtensionsImage</param-name>
                
    <param-value>jpg|gif|jpeg|png|bmp</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>DeniedExtensionsImage</param-name>
                
    <param-value></param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>AllowedExtensionsFlash</param-name>
                
    <param-value>swf|fla</param-value>
            
    </init-param>
            
    <init-param>
                
    <param-name>DeniedExtensionsFlash</param-name>
                
    <param-value></param-value>
            
    </init-param>
            
    <load-on-startup>1</load-on-startup>
        
    </servlet>

      
    <servlet-mapping>
        
    <servlet-name>Connector</servlet-name>
        
    <url-pattern>/fckeditor/connector</url-pattern>
      
    </servlet-mapping>
      
      
    <servlet-mapping>
        
    <servlet-name>SimpleUploader</servlet-name>
        
    <url-pattern>/fckeditor/simpleuploader</url-pattern>
      
    </servlet-mapping>

    4、修改/WebRoot/fckeditor/fckconfig.js,修改部分如下:

    FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=/fckeditor/connector' ;
    FCKConfig.ImageBrowserURL 
    = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=/fckeditor/connector' ;
    FCKConfig.FlashBrowserURL 
    = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=/fckeditor/connector' ;
    FCKConfig.LinkUploadURL 
    = '/fckeditor/simpleuploader?Type=File' ;
    FCKConfig.ImageUploadURL 
    = '/fckeditor/simpleuploader?Type=Image' ;
    FCKConfig.FlashUploadURL 
    = '/fckeditor/simpleuploader?Type=Flash';

    注意
    (1) 步驟3、4設(shè)置了文件瀏覽和上傳的配置,web.xml中Servlet的<url-pattern>要和fckconfig.js中的URL引用一致;
    (2) 本例正常運(yùn)行的前提是WebRoot被部署為根路徑,如果設(shè)了虛擬路徑會(huì)找不到servlet。

    四、使用

    本例使用最直接的js方式,API和TagLib方式參見(jiàn)FCKeditor-2.3.zip解壓后_samples下的例子。
    fckdemo.jsp: 

    <%@    page contentType="text/html;charset=GBK"%>
    <html>
    <head>
    <title>FCKeditor Test</title>
    <script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
    </head>
    <body>
    <form action="fckdemo.jsp" method="post">

    <% 
    String content=request.getParameter("content");
    if (content != null) {
      content 
    = content.replaceAll("\r\n""");
      content 
    = content.replaceAll("\r""");
      content 
    = content.replaceAll("\n""");
      content 
    = content.replaceAll("\"", "'");
    }else{
      content 
    = "";
    }
    %>

    <table width=100%>
    <tr>
        
    <td colspan=4 style='text-align:center' width=100% height=50px>
        
    <span>
            
    <script type="text/javascript">
                
    var oFCKeditor = new FCKeditor('content');//傳入?yún)?shù)為表單元素(由FCKeditor生成的input或textarea)的name
                oFCKeditor.BasePath='/fckeditor/';//指定FCKeditor根路徑,也就是fckeditor.js所在的路徑
                oFCKeditor.Height='100%';
                oFCKeditor.ToolbarSet
    ='Demo';//指定工具欄
                oFCKeditor.Value="<%=content%>";//默認(rèn)值
                oFCKeditor.Create();
            
    </script>
        
    </span>
        
    </td>
    </tr>
    <tr><td align=center><input type="submit" value="提交"></td></tr>
    <tr><td>&nbsp;</td></tr>
    <tr><td>取值(可直接保存至數(shù)據(jù)庫(kù)):</td></tr>
    <tr><td style="padding:10px;"><%=content%></td></tr>
    </table>

    </form>
    </body>
    </html>

    效果圖:


    五、配置文件fckconfig.js

    1、DefaultLanguage:缺省語(yǔ)言,可更改為“zh-cn”

    2、自定義工具欄:可修改或增加ToolbarSets,例如:

    FCKConfig.ToolbarSets["Demo"= [
        ['Bold','Italic','
    -','OrderedList','UnorderedList','-','Link','Unlink','-','TextColor','BGColor','-','Style','-','Image','Flash','Table']
    ] ;

    3、EnterMode和ShiftEnterMode:“回車(chē)”和“Shift+回車(chē)”的換行行為,注釋提示了可選模式

    4、EditorAreaCss:編輯區(qū)樣式文件

    5、其他參數(shù)(轉(zhuǎn)):

    AutoDetectLanguage=true/false   自動(dòng)檢測(cè)語(yǔ)言 
    BaseHref
    =""   相對(duì)鏈接的基地址 
    ContentLangDirection
    ="ltr/rtl"   默認(rèn)文字方向 
    ContextMenu
    =字符串?dāng)?shù)組,右鍵菜單的內(nèi)容 
    CustomConfigurationsPath
    =""   自定義配置文件路徑和名稱(chēng) 
    Debug
    =true/false   是否開(kāi)啟調(diào)試功能,這樣,當(dāng)調(diào)用FCKDebug.Output()時(shí),會(huì)在調(diào)試窗中輸出內(nèi)容 
    EnableSourceXHTML
    =true/false   為T(mén)RUE時(shí),當(dāng)由可視化界面切換到代碼頁(yè)時(shí),把HTML處理成XHTML 
    EnableXHTML
    =true/false   是否允許使用XHTML取代HTML 
    FillEmptyBlocks
    =true/false   使用這個(gè)功能,可以將空的塊級(jí)元素用空格來(lái)替代 
    FontColors
    =""   設(shè)置顯示顏色拾取器時(shí)文字顏色列表 
    FontFormats
    =""   設(shè)置顯示在文字格式列表中的命名 
    FontNames
    =""   字體列表中的字體名 
    FontSizes
    =""   字體大小中的字號(hào)列表 
    ForcePasteAsPlainText
    =true/false   強(qiáng)制粘貼為純文本 
    ForceSimpleAmpersand
    =true/false   是否不把&符號(hào)轉(zhuǎn)換為XML實(shí)體 
    FormatIndentator
    =""   當(dāng)在源碼格式下縮進(jìn)代碼使用的字符 
    FormatOutput
    =true/false   當(dāng)輸出內(nèi)容時(shí)是否自動(dòng)格式化代碼 
    FormatSource
    =true/false   在切換到代碼視圖時(shí)是否自動(dòng)格式化代碼 
    FullPage
    =true/false   是否允許編輯整個(gè)HTML文件,還是僅允許編輯BODY間的內(nèi)容 
    GeckoUseSPAN
    =true/false   是否允許SPAN標(biāo)記代替B,I,U標(biāo)記 
    IeSpellDownloadUrl
    =""下載拼寫(xiě)檢查器的網(wǎng)址 
    ImageBrowser
    =true/false   是否允許瀏覽服務(wù)器功能 
    ImageBrowserURL
    =""   瀏覽服務(wù)器時(shí)運(yùn)行的URL 
    ImageBrowserWindowHeight
    =""   圖像瀏覽器窗口高度 
    ImageBrowserWindowWidth
    =""   圖像瀏覽器窗口寬度 
    LinkBrowser
    =true/false   是否允許在插入鏈接時(shí)瀏覽服務(wù)器 
    LinkBrowserURL
    =""   插入鏈接時(shí)瀏覽服務(wù)器的URL 
    LinkBrowserWindowHeight
    =""鏈接目標(biāo)瀏覽器窗口高度 
    LinkBrowserWindowWidth
    =""鏈接目標(biāo)瀏覽器窗口寬度 
    Plugins
    =object   注冊(cè)插件 
    PluginsPath
    =""   插件文件夾 
    ShowBorders
    =true/false   合并邊框 
    SkinPath
    =""   皮膚文件夾位置 
    SmileyColumns
    =12   圖符窗列數(shù) 
    SmileyImages
    =字符數(shù)組   圖符窗中圖片文件名數(shù)組 
    SmileyPath
    =""   圖符文件夾路徑 
    SmileyWindowHeight   圖符窗口高度 
    SmileyWindowWidth   圖符窗口寬度 
    SpellChecker
    ="ieSpell/Spellerpages"   設(shè)置拼寫(xiě)檢查器 
    StartupFocus
    =true/false   開(kāi)啟時(shí)FOCUS到編輯器 
    StylesXmlPath
    =""   設(shè)置定義CSS樣式列表的XML文件的位置 
    TabSpaces
    =4   TAB鍵產(chǎn)生的空格字符數(shù) 
    ToolBarCanCollapse
    =true/false   是否允許展開(kāi)/折疊工具欄 
    ToolbarSets
    =object   允許使用TOOLBAR集合 
    ToolbarStartExpanded
    =true/false   開(kāi)啟是TOOLBAR是否展開(kāi) 
    UseBROnCarriageReturn
    =true/false   當(dāng)回車(chē)時(shí)是產(chǎn)生BR標(biāo)記還是P或者DIV標(biāo)記

    六、自定義樣式

    工具欄的Style選項(xiàng),是由fckconfig.js指定的配置文件來(lái)產(chǎn)生的:

    FCKConfig.StylesXmlPath  = FCKConfig.EditorPath + 'fckstyles.xml' ;

    可修改fckstyles.xml來(lái)自定義樣式。

    posted on 2008-02-18 20:15 FastUnit 閱讀(108499) 評(píng)論(79)  編輯  收藏 所屬分類(lèi): JavaJavaScript

    Feedback

    # re: HTML編輯器FCKeditor使用詳解 2008-02-18 22:12 海邊沫沫
    http://www.tkk7.com/youxia/archive/2007/03/15/104077.html  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-02-18 22:44 FastUnit
    @海邊沫沫
    已拜讀,好文!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-02-19 08:54 魔域私服
    已拜讀,好文!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2008-03-13 13:53 is
    oFCKeditor.Value="<%=content==null?"":(content.replaceAll("\"", "'"))%>";//默認(rèn)值

    我用你的方法后,在上面這行上報(bào)錯(cuò).頁(yè)面顯示不出來(lái)  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-03-15 12:11 FastUnit
    @is
    我重新測(cè)了一下fckdemo.jsp,沒(méi)有發(fā)現(xiàn)問(wèn)題。
    你是否做了某些修改、報(bào)錯(cuò)信息是什么?  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-05-04 14:24 劉俊杰
    我也沒(méi)有顯示出來(lái)的,方便的話(huà)可加我:QQ:178070373,ljh0242@163.com  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-05-06 14:22 FastUnit
    @劉俊杰
    已加。  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2008-05-27 14:24 linda
    我也沒(méi)有顯示出來(lái)的
    oFCKeditor.Value="<%=content==null?"":(content.replaceAll("\"", "'"))%>";//默認(rèn)值

    報(bào)的是腳本錯(cuò)誤:unterminated string literal
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-05-28 19:37 FastUnit
    @linda
    使用js賦值方式時(shí),如果值包含回車(chē)就會(huì)報(bào)這個(gè)錯(cuò)誤,我已在fckdemo.jsp中增加了回車(chē)的替換。
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-07-07 18:00 vb2005xu@sina.com
    $fcked->InstanceName = 'mythis' ; -- 這個(gè)才是你要設(shè)置的FORM控件的名字

    取值當(dāng)然要從這里了 ... 你寫(xiě)的東西 我估計(jì) 你自己 也沒(méi)整明白吧  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-07-07 18:01 vb2005xu@sina.com
    var oFCKeditor = new FCKeditor('content');//表單的name,取值的依據(jù)
    還 表單的名字 ,, 你 有點(diǎn)常識(shí) 好不??
    不會(huì) 就別誤導(dǎo)別人  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-07-08 18:08 FastUnit
    @vb2005xu@sina.com
    “表單的name”確實(shí)表達(dá)有誤,表單控件/表單元素可能會(huì)準(zhǔn)確一點(diǎn),實(shí)際上對(duì)應(yīng)為FCKeditor生成的一個(gè)<input>或<textarea>的“name”屬性。
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-07-18 13:56 陳坤
    分頁(yè)符在IE下面默認(rèn)為<div style="page-break-after: always"><span style="display: none">&nbsp;</span></div>,我想改為其他的,怎么修改?  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-07-20 20:12 FastUnit
    @陳坤
    打開(kāi)/editor/js/fckeditorcode_ie.js,修改FCKPageBreakCommand.prototype.Execute()。  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-02 14:26 lilsean
    把fckeditor文件復(fù)制到webroot下
    然后配置也和你一樣
    結(jié)果頁(yè)面那個(gè)框顯示不出來(lái)
    new FCKeditor創(chuàng)建不出來(lái)這個(gè)對(duì)象嗎?
    路徑應(yīng)該沒(méi)啥錯(cuò)的
    都和你一樣的
    qq:409583691  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-03 22:00 Keind
    誰(shuí)能教我~~用FCK  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-08 17:57 大狗
    new FCKeditor創(chuàng)建不出來(lái)這個(gè)對(duì)象  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-09 15:20 gracia
    請(qǐng)問(wèn)樓主這個(gè)FCKeditor的非空驗(yàn)證怎么寫(xiě)
    我的QQ號(hào)是254012079
    如果哪位高手知道的話(huà),麻煩教一下!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-15 21:02 木風(fēng)口子
    樓主能否寫(xiě)個(gè)將編輯器內(nèi)容獲得后放入數(shù)據(jù)庫(kù)的例子,我弄了好久,總是不行,謝謝!!!!我的QQ315213073  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2008-08-18 11:33 32
    佛擋殺佛  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2008-08-18 11:35
    怎么我在文本里面輸入200個(gè)字以上就保存不其呢,請(qǐng)大俠幫我解決一下,謝謝  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-19 14:43 莎士比亞
    把fckeditor文件復(fù)制到webroot下
    然后配置也和你一樣
    結(jié)果頁(yè)面那個(gè)框顯示不出來(lái)
    new FCKeditor創(chuàng)建不出來(lái)這個(gè)對(duì)象嗎?
    路徑應(yīng)該沒(méi)啥錯(cuò)的
    都和你一樣的
    我qq:823775485  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-08-28 10:47 zhangyq
    已拜讀,好文!已收藏.  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-09-12 10:58 劉亞?wèn)|
    我取出的值怎么老是html代碼啊,
    <tr><td align=center><input type="submit" value="提交"></td></tr>
    <tr><td>&nbsp;</td></tr>
    <tr><td>取值(可直接保存至數(shù)據(jù)庫(kù)):</td></tr>
    <tr><td style="padding:10px;"><%=content%></td></tr>
    </table>
    保存到數(shù)據(jù)庫(kù)怎么老是html代碼,能不能去中文的值啊。  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2008-10-31 12:38 小亮Web
    我的也顯示不出來(lái) 方便的話(huà)加我Q 362556638



    不勝感激



    多指教.....  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2008-11-20 16:39 冷雪
    我把帶有html標(biāo)記的文章加進(jìn)去后,顯示出來(lái)的時(shí)候把html解析了,如加入" <B>加粗 </B> "后,則在頁(yè)面顯示的時(shí)候就會(huì)顯示成"加粗",此時(shí)會(huì)成為粗體,我想讓它顯示的時(shí)候還顯示" <B>加粗 </B> ",應(yīng)該怎么做?非常感謝!我用的是2.6版本的FCKeditor  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-01-01 15:53 山寨貨網(wǎng)
    感謝……  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-01-03 11:10 luyx
    為什么我的回車(chē)沒(méi)有起到換行的作用呢

    怎么jj  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-01-09 02:07 Rachel
    @海邊沫沫
    拜讀,寫(xiě)的確實(shí)很好  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-02-05 09:47 戰(zhàn)神
    拜讀 不錯(cuò)
    看看行不行 值得研究
    QQ:369415359  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-02-05 17:33 阿斯頓發(fā)發(fā)發(fā)方法
    上的反反復(fù)復(fù)反反復(fù)復(fù)反反復(fù)復(fù)   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-02-13 10:20 xyqclq
    ASP中調(diào)用HTML編輯器,提交后,顯示HTML代碼問(wèn)題:原系統(tǒng)可能是用UBB編輯器的.只要在顯示頁(yè)面里的顯示文本框中找到類(lèi)似這句<% =ubbcode(unhtml(rs("content"))) %> 的語(yǔ)句, 改成<% =ubbcode(rs("content"))%> 或<% =rs("content") %> .就可以正確顯示HTML編輯器編輯的內(nèi)容了.
     不過(guò)要順便說(shuō)明,改成<% =ubbcode(rs("content")) %> 后,原UBB編輯器編輯的內(nèi)容也可以顯示,但沒(méi)有格式變了.改成<% =rs("content")%> 后,原UBB編輯器編輯的內(nèi)容顯示的是原代碼.  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2009-02-22 18:35 吳浩
    我的也是,你知道的是什么原因了嗎?@大狗
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-03-04 20:48 學(xué)習(xí)
    樓主 為什么我點(diǎn)圖標(biāo)保存后 頁(yè)面剛輸入的內(nèi)容就都沒(méi)有了啊
    請(qǐng)問(wèn)該怎么解決啊   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-03-04 20:51 學(xué)習(xí)
    如果不能保存 去掉這個(gè)按鈕也行 我嘗試了好久都不行 樓主教教我吧 謝謝 我QQ是610331187
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-03-10 16:04 gfwe
    交流java開(kāi)發(fā)技術(shù),促進(jìn)技術(shù)進(jìn)步!!!
    歡迎加入java技術(shù)交流群48419050  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-03-31 11:35
    樓主,按你的方法配置,顯示不出 頁(yè)面的編輯框(fckeditor.js)調(diào)不出來(lái)
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-04-16 18:57 layn
    樓主,請(qǐng)問(wèn)一下知道怎么在fckeditor光標(biāo)處插入文本嗎,就是用腳本在光標(biāo)處插入文本  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-04-21 12:35 xli
    你好。怎么樣在字體欄中選擇“宋體”,并且能起作用。謝謝。方便時(shí)加qq354221265  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-04-25 19:36 apache
    強(qiáng),受教了!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-04-27 22:06 我就是不輸用戶(hù)名
    怎么看不懂啊!   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-05-07 23:41 可憐人
    哎~!對(duì)不起。我照著你這樣配置。但是tomcat啟動(dòng)的時(shí)候報(bào)錯(cuò)了。現(xiàn)在改成新版本啦  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-05-08 11:41 replica watches
    <a href="htp://www.2009watches.com/"><h1>replica watches</h1></a>
    welcome to <a href="http://www.2009watches.com/">replica watches online shop</a>  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-05-08 11:42 replica watches
    welcome to http://www.2009watches.com  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2009-05-08 16:19 zhang
    有 .net 版的沒(méi)?
    我想要.net版的  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-05-11 18:25 lonely
    有用 嗎? 有用我就試試了  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-05-20 08:29 fdsf
    fdssdf
    dsfaf
    asdfasdf
    asdfasd
    sdfasd
    sdfasdf
    sdfasdf
    sdfasdf
    sdfasdfsd  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-06-04 16:44 napolen
    將fckeditor復(fù)制后,里面editor文件夾下的dialog文件夾有個(gè)小叉,是怎么回事呢,這個(gè)dialog文件夾有什么用呢,用的環(huán)境是myeclipse,方便的話(huà)加一下qq 365690335  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2009-06-10 14:02 呵呵
    樓主的示例很好,我測(cè)試通過(guò)了。謝謝,其它沒(méi)跑通的是你沒(méi)部署正確,不要隨便指責(zé),是你自已的問(wèn)題。  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2009-06-10 14:04 呵呵
    @vb2005xu@sina.com
    你有點(diǎn)常識(shí)行不?/
    這是JS按'content' 自動(dòng)創(chuàng)建一個(gè)  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-06-12 10:45 燕燕
    你好,我想問(wèn)下http://www.fckeditor.net/download/,目前版本是2.6的,我下來(lái)后就一個(gè)zip文件,我是不是也要下載FCKeditor-2.3.zip版本的才能用啊 ,
    FCKeditor 2.5.1(FCKeditor_2.5.1.zip)和FCKeditor.Java(FCKeditor-2.3.zip)
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-06-23 09:01 123





    <a href=""></a>

      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2009-07-27 22:53 民工
    fckdemo.jsp和fckeditor/fckeditor.js如果不是在同一個(gè)目錄應(yīng)該這樣寫(xiě)
    <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
    沒(méi)有前面的"/"  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-08-28 14:19 聚資庫(kù)
    好文章,頂.........  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-09-30 19:34 聶亮
    這么差的代碼還拿出來(lái)啊
    不知道有錯(cuò)誤嗎
    沒(méi)有引入樣式表
    并且那個(gè)基地址也錯(cuò)了
    應(yīng)該是這樣的
    oFCKeditor.BasePath='<%=basePath %>/fckeditor/';
    <link href="<%=basePath %>/fckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="<%=basePath %>/fckeditor/fckeditor.js"></script>   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-10-28 15:05 李龍
    創(chuàng)建不出編輯器,不知道哪里出錯(cuò)。已經(jīng)自己檢查幾天了。還未解決。請(qǐng)各位高手指點(diǎn)指點(diǎn),QQ:838909973 感激不盡。  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2009-10-28 15:08 李龍
    老是報(bào)錯(cuò):未結(jié)束的字符串常量,同上。  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-01-05 10:57 juan
    的防守對(duì)方  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-09-04 12:14 hyc
    把fckeditor文件復(fù)制到webroot下
    然后配置也和你一樣
    結(jié)果頁(yè)面那個(gè)框顯示不出來(lái)
    new FCKeditor創(chuàng)建不出來(lái)這個(gè)對(duì)象嗎?
    路徑應(yīng)該沒(méi)啥錯(cuò)的
    都和你一樣的
    qq:429559515   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-09-04 12:52 hyc
    oFCKeditor.ToolbarSet='Demo';//指定工具欄
    'Demo'指的是什么!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-09-04 12:53 hyc
    @聶亮
    很好!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-10-12 14:10 liwang
    出不來(lái)的原因是!  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-10-12 14:12 liwang
    出不來(lái)的原因是路徑問(wèn)題,、
    oFCKeditor.BasePath='/fckeditor/';改成 oFCKeditor.BasePath='fckeditor/';
    把<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
    改成<script type="text/javascript" src="fckeditor/fckeditor.js"></script>  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-12-02 16:01 BB霜
    在asp.net mvc下面也可以使用嗎?  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2010-12-02 16:02 淘寶汽車(chē)坐墊
    看上去這個(gè)還不錯(cuò),用和ewebedit哪個(gè)更好呢  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2011-03-02 16:16 樹(shù)上の螞蟻
    能寫(xiě)了按鈕直接調(diào)用編輯器的文本顏色選擇器嗎??  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2011-05-17 10:17 1223
    日你媽  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2011-05-30 16:12 sakilazhen
    我的怎么就不出來(lái),fck_docprops.html頁(yè)面的
    代碼報(bào)錯(cuò)說(shuō)option沒(méi)有關(guān)閉,這是什么原因  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2011-09-01 10:24 kkk
    <%@ page contentType="text/html;charset=GBK"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <html>
    <head>
    <title>FCKeditor Test</title>
    <link href="<%=basePath %>/fckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=basePath %>/fckeditor/fckeditor.js"></script>
    </head>
    <body>
    <form action="fckdemo.jsp" method="post">
    <%
    String content = request.getParameter("content");
    if (content != null) {
    content = content.replaceAll("\r\n", "");
    content = content.replaceAll("\r", "");
    content = content.replaceAll("\n", "");
    content = content.replaceAll("\"", "'");
    } else {
    content = "";
    }
    %>
    <table width=100%>
    <tr>
    <td colspan=4 style='text-align: center' width=100% height=300px>
    <span>
    <script type="text/javascript">
    var oFCKeditor = new FCKeditor('content');//傳入?yún)?shù)為表單元素(由FCKeditor生成的input或textarea)的name , 對(duì)應(yīng)為FCKeditor生成的一個(gè)<input>或<textarea>的“name”屬性
    oFCKeditor.BasePath='<%=basePath %>/fckeditor/'; //指定FCKeditor根路徑,也就是fckeditor.js所在的路徑
    oFCKeditor.Height='100%';
    oFCKeditor.Value="<%=content==null?"":(content.replaceAll("\"", "'"))%>";//
    oFCKeditor.Create();
    </script> </span>
    </td>
    </tr>
    <tr>
    <td align=center>
    <input type="submit" value="提交">
    </td>
    </tr>
    <tr>
    <td>
    &nbsp;
    </td>
    </tr>
    <tr>
    <td>
    取值(可直接保存至數(shù)據(jù)庫(kù)):
    </td>
    </tr>
    <tr>
    <td style="padding: 10px;"><%=content%></td>
    </tr>
    </table>

    </form>
    </body>
    </html>  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2011-09-15 09:00 loan
    Following my analysis, billions of persons on our planet receive the personal loans from good banks. Thus, there's good possibilities to find a small business loan in all countries.   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2011-10-07 03:24 written essays
    When you have got a chance to utilize the paper writing service, do not doubt, purchase custom essay and just chill out.   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2012-05-09 13:12 domain registration india
    Outstanding blog post, I have marked your site so ideally I’ll see much more on this subject in the foreseeable future…
      回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2012-07-04 21:52 lxx
    我也是 按著你寫(xiě)的做了 但是只出來(lái)提交和那一行字 哪位大蝦幫幫我啊 251779963+++  回復(fù)  更多評(píng)論
      

    # whjcwbua@gmail.com 2013-03-19 21:25 http://thebestshoelifts.weebly.com
    The concept of your blog is truly fresh, I am positive that the people who find your blogs will definitely benefit your content and pointers.  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2013-04-17 10:36 Stacy
    Thanks for sharing the great information about Social websites which is very important to increase our traffic and increase our visibility
    stacy@listfreewebdirectories.com  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2013-09-04 11:36 li
    彈出框 工具欄設(shè)置"Demo" 不存在   回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2013-11-18 09:30 Dream
    FCKeditor編輯器,代碼改成如下后
    FCKConfig.EnterMode = 'br' ; // p | div | br
    FCKConfig.ShiftEnterMode = 'p' ; // p | div | br
    在編輯器中,每回車(chē)一下,內(nèi)容后面自動(dòng)多出一個(gè)</br>  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解[未登錄](méi) 2014-06-25 15:35 李強(qiáng)
    做得好棒.利用客觀唯一性才能正確評(píng)價(jià)事物,包括義務(wù)規(guī)定不能被逃避.  回復(fù)  更多評(píng)論
      

    # re: HTML編輯器FCKeditor使用詳解 2015-02-12 08:45 mkop
    kanyikan  回復(fù)  更多評(píng)論
      

    主站蜘蛛池模板: 亚洲精品国产精品乱码不卞| 亚洲爆乳成av人在线视菜奈实| 亚洲AV无码国产丝袜在线观看| 日韩国产精品亚洲а∨天堂免| 手机看黄av免费网址| 亚洲AV无码国产精品色午友在线| 一级毛片a免费播放王色| 国产成人aaa在线视频免费观看| 亚洲无mate20pro麻豆| 无码国产精品一区二区免费式直播 | 在线亚洲精品自拍| 羞羞视频在线观看免费| 免费国内精品久久久久影院| 亚洲精品国产摄像头| 午夜一级免费视频| 亚洲日韩AV一区二区三区四区| 无码一区二区三区AV免费| 亚洲av无码国产综合专区| 免费观看黄色的网站| 亚洲视频一区在线| 95免费观看体验区视频| 4480yy私人影院亚洲| 24小时日本韩国高清免费| 国产亚洲精久久久久久无码77777| 特黄aa级毛片免费视频播放| 免费亚洲视频在线观看| 国产精品自拍亚洲| 免费国产美女爽到喷出水来视频| 免费的黄色的网站| 亚洲国产午夜中文字幕精品黄网站| 免费的黄网站男人的天堂| 亚洲精品国产福利一二区| www成人免费视频| 青青草原亚洲视频| 国内精品免费在线观看 | 日韩亚洲国产高清免费视频| 男男AV纯肉无码免费播放无码| 最新亚洲卡一卡二卡三新区| 午夜一级毛片免费视频| 老司机午夜在线视频免费| 亚洲视频在线精品|