史上最好用的編輯器Ueditor Thinkphp

來源:互聯網
上載者:User

標籤:style   blog   http   io   color   os   ar   使用   java   

 1 <html> 2 <title>Ueditor文字編輯器</title> 3 <head> 4     <title>完整demo</title> 5     <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> 6      7     <load href="__PUBLIC__/Ueditor/ueditor.config.js" /> 8     <load href="__PUBLIC__/Ueditor/ueditor.all.min.js" /> 9     10     <!--使用版-->11     <!--<script type="text/javascript" charset="utf-8" src="../ueditor.all.js"></script>-->12 13     <!--開發版-->14     <!--<script type="text/javascript" charset="utf-8" src="editor_api.js"> </script>-->15 16     <!--建議手動加在語言,避免在ie下有時因為載入語言失敗導致編輯器載入失敗-->17     <!--這裡載入的語言檔案會覆蓋你在設定項目裡添加的語言類型,比如你在設定項目裡配置的是英文,這裡載入的中文,那最後就是中文-->18     <load href="__PUBLIC__/Ueditor/lang/zh-cn/zh-cn.js" />19 20     <style type="text/css">21         .clear {22             clear: both;23         }24     </style>25 </head>26 <body>27 <div>28 <form name=‘MyForm‘ id=‘MyForm‘ method=‘POST‘ action="{:U(‘Editor/editor‘)}" >29     <script id="editor" name="editor" type="text/plain" style="align:center;width:900px;height:300">30        31     </script>32     <input type="submit" value="提交"/>33 </form>34 </div>35 </body>36 <script type="text/javascript">37     //UEDITOR_HOME_URL、config、all這三個順序不能改變(絕對路徑)38     //window.UEDITOR_HOME_URL = "/ThinkPHP/Public/Ueditor/";    39     //執行個體化編輯器40     var ue = UE.getEditor(‘editor‘);41 </script>

Ueditor下載:http://ueditor.baidu.com/website/download.html#ueditor

史上最好用的編輯器Ueditor Thinkphp

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.