- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>UEditor</title>
- <!--以下为引入UEditor资源部分-->
- <script type="text/javascript" src="UEditor/editor_config.js"></script>
- <script type="text/javascript" src="UEditor/editor_all.js"></script>
- <link rel="stylesheet" href="UEditor/themes/default/ueditor.css">
- <!--以上为引入UEditor资源部分-->
- </head>
- <body>
- <form action="test.php" method="post" name="myForm">
- <!--以下引入UEditor编辑器界面-->
- <script type="text/plain" id="myEditor" name="myContent">这是一个测试还是一个测试</script>
- <input type="submit" name="submit" value="upload"/>
- </form>
- <script type="text/plain" id="myEditor1"><p>这里我可以写一些输入提示</p></script>
- <script type="text/javascript">
- var editor_a = new baidu.editor.ui.Editor();
- editor_a.render( 'myEditor' ); //此处的参数值为编辑器的id值
-
- var editor_a1 = new baidu.editor.ui.Editor({
- //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
- toolbars:[['FullScreen', 'Source', 'Undo', 'Redo','Bold']],
- //focus时自动清空初始化时的内容
- autoClearinitialContent:true,
- //更多其他参数,请参考editor_config.js中的配置项
- });
- editor_a1.render( 'myEditor1' );
- </script>
- </body>
- </html>
posted @
2015-09-08 08:44
任它明月下西楼
阅读(
524)
评论()
编辑
收藏
举报