|
调用代码
- <script charset="utf-8" src="../editor/kindeditor.js"></script>
- <script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
- <script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>
- <script type="text/javascript">
- var editor
- KindEditor.ready(function(K) {
- editor = K.create('textarea[name="content"]', {
- cssPath : '../editor/plugins/code/prettify.css',
- uploadJson : '../editor/asp/upload_json.asp',
- fileManagerJson : '../editor/asp/file_manager_json.asp',
- urlType:'domain', /*urlType 属性的 参数说明:改变站内本地URL,可设置空、relative、absolute、domain。*/
- allowFileManager : true,filterMode: false,
- afterCreate : function() {
- var self = this;
- K.ctrl(document, 13, function() {
- self.sync();
- K('form[name=editpro]')[0].submit();
- });
- K.ctrl(self.edit.doc, 13, function() {
- self.sync();
- K('form[name=editpro]')[0].submit();
- });
- }
- });
-
-
-
- prettyPrint();
- });
- </script>
复制代码 |
|