標籤: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