主题: ctrl+enter功能报错 |
作者: wuliao, 发布日期: 2013-09-21 17:36:21, 浏览数: 2329 |
<script>
// 剩余功能: 'lineheight', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', 'baidumap', 'pagebreak', 'anchor' KindEditor.ready(function(k) { editorContent = k.create('#content', { id: 'content', filterMode: false,//是否开启过滤模式 autoHeightMode: false, uploadJson: '/kindeditor/ashx/upload_json.ashx?width=500&height=200', height: $(window).height() - 260, fileManagerJson: '/kindeditor/ashx/file_manager_json.ashx', allowFileManager: true, items: [ 'source', '|', 'undo', 'redo', '|', 'code', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript', 'removeformat', '/', 'formatblock', 'fontname', 'fontsize', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', '|', 'image', 'multiimage', 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'link', 'unlink' ], afterCreate: function(id) { editorContent.event.ctrl(document, 13, function() { SaveData(); }); editorContent.event.ctrl(editorContent.g[id].iframeDoc, 13, function() { SaveData(); }); } }); }) </script> <textarea name="content" id="content" style="width: 100%;"></textarea>
报:TypeError: editorContent is undefined这个错误。该如何修改啊 |
作者: Roddy, 发布日期: 2013-09-21 18:51:06 |
回复 |