<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="contents"]', {
cssPath : '/kindeditor/plugins/code/prettify.css',
uploadJson : '/kindeditor/upload_json.php',
fileManagerJson : '/kindeditor/file_manager_json.php',
allowFileManager : true,
filterMode: false, //在定义时加上这一句即可
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>
KindEditor编辑器关闭过滤html,js,css标题方法
最新推荐文章于 2021-08-04 08:54:40 发布
本文介绍如何使用 KindEditor 富文本编辑器进行基本配置,包括设置 CSS 路径、上传文件路径等,并实现了通过 Ctrl+Enter 快捷键同步编辑器内容并提交表单的功能。
338

被折叠的 条评论
为什么被折叠?



