<!DOCTYPEhtml PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">javascript
<htmlxmlns="http://www.w3.org/1999/xhtml">php
<head>css
<metahttp-equiv="Content-Type" content="text/html; charset=utf-8"/>html
<title>編輯器完整版實例-1.2.6.0</title>前端
<scripttype="text/javascript" src="ueditor.config.js" charset="utf-8"></script>java
<scripttype="text/javascript" src="ueditor.all.js" charset="utf-8"></script>jquery
<linktype="text/css" rel="Stylesheet" href="WordPaster/css/WordPaster.css"/>json
<linktype="text/css" rel="Stylesheet" href="WordPaster/js/skygqbox.css" />編輯器
<scripttype="text/javascript" src="WordPaster/js/json2.min.js" charset="utf-8"></script>ui
<scripttype="text/javascript" src="WordPaster/js/jquery-1.4.min.js" charset="utf-8"></script>
<scripttype="text/javascript" src="WordPaster/js/WordPaster.js" charset="utf-8"></script>
<scripttype="text/javascript" src="WordPaster/js/skygqbox.js" charset="utf-8"></script>
</head>
<body>
<textareaname="後臺取值的key"id="myEditor">這裏寫你的初始化內容</textarea>
<scripttype="text/javascript">
var pasterMgr = new WordPasterManager();
pasterMgr.Config["PostUrl"] = "http://localhost:81/WordPaster2/WordPasterUEditor1x/php/upload.php"
pasterMgr.Load();//加載控件
UE.getEditor('myEditor',{onready:function(){//建立一個編輯器實例
pasterMgr.SetEditor(this);
}});
</script>
</body>
</html>
前端效果:
可參考這篇文章:http://t.cn/AiHvI5qG