顶部部分
- <link rel="stylesheet" href<span style="color:#ff6666;">="../../</span>editor/themes/default/default.css" />
- <script charset="utf-8" src<span style="color:#ff6666;">="../../</span>editor/kindeditor.js"></script>
- <script charset="utf-8" src<span style="color:#ff6666;">="../../</span>editor/lang/zh_CN.js"></script>
- <script charset="utf-8" src<span style="color:#ff6666;">="../../</span>editor/plugins/code/prettify.js"></script>
- <script>
- KindEditor.ready(function(K) {
- var editor1 = K.create('#<span style="color:#ff6666;">content</span>', {
- cssPath : '<span style="color:#ff6666;">../../</span>editor/plugins/code/prettify.css',
- uploadJson : '<span style="color:#ff6666;BACKGROUND-COLOR: #ffffff">../../</span>editor/asp.net/upload_json.ashx',
- fileManagerJson : '<span style="color:#ff6666;">../../</span>editor/asp.net/file_manager_json.ashx',
- allowFileManager : true,
- afterCreate : function() {
- var self = this;
- K.ctrl(document, 13, function() {
- self.sync();
- K('form[name=example]')[0].submit();
- });
- K.ctrl(self.edit.doc, 13, function() {
- self.sync();
- K('form[name=example]')[0].submit();
- });
- }
- });
- prettyPrint();
- });
- </script>
body中部分
- <textarea id="<span style="color:#ff6666;">content</span>" name="content" style="700px;height:300px;">
- <strong>HTML内容</strong>
- </textarea>
引用:http://blog.csdn.net/wlc_win/article/details/7058243