ueditor PHP版本使用方法

來源:互聯網
上載者:User

標籤:asc   方法   設定檔   theme   目錄   ima   檔案   edit   技術   

1.ueditor是百度很好用的一款文字編輯器,第一次使用,在此記錄使用方法。

2.從http://ueditor.baidu.com/website/download.html#ueditor下載editor php utf-8版本

3.解壓:說明

dialogs:存放的是彈出對話方塊對應的資源,還有js檔案和js檔案資源
lang:語言檔案目錄
php:php目錄:php檔案->config.json:設定檔
themes:主題目錄
third-party:第三方外掛程式
index.html:demo
ueditor.all.js:ueditor源碼檔案
ueditor.all.min.js:ueditor源碼檔案壓縮版
ueditor.config.js:設定檔(可以建立多個不同版本,在多個地方使用)
ueditor.parse.js:第三方外掛程式
ueditor.parse.min.js:第三方外掛程式壓縮版

4.在檔案中建立index.html檔案,引入ueditor,兩者放在平級目錄中:如下:

5.在index.html中引入ueditor,index.html編輯如下:

<html><head>    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />    <title>editor測試</title>    <script src="/ueditor/ueditor.config.js">/*引入設定檔*/</script>    <script src="/ueditor/ueditor.all.js">/*引入源碼檔案*/</script></head><body>    <textarea id="content" rows="10" cols="70" style="border:1px solid #E5E5E5;">55222</textarea>        <script type="text/javascript">        UE.getEditor("content");//執行個體化編輯器  傳參,id為將要被替換的容器。    </script></html>

引入效果:

6.

 

ueditor PHP版本使用方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.