kindeditor去掉网络图片

本文介绍如何在网页中集成KindEditor富文本编辑器,包括设置编辑器的基本属性如宽度、高度等,并展示了如何通过JavaScript初始化编辑器,以及一些重要的配置选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

//以下代码仅供参考
1
<script charset="utf-8" src="/js/editor/kindeditor-all.js"></script><script> 2 function kedit(kedit){ 3 var editor = KindEditor.create(kedit,{ 4 width: '780px', 5 height: '360px', 6 resizeMode: 0, 7 uploadJson:'/file/upload_json.php', 8 fileManagerJson:'/file/file_manager_json.php', 9 allowPreviewEmoticons: false, 10 allowImageUpload: true, //上传图片框本地上传的功能,false为隐藏,默认为true 11 allowImageRemote : false, //上传图片框网络图片的功能,false为隐藏,默认为true 12 allowFileManager : true, //浏览图片空间 13 filterMode : false, //HTML特殊代码过滤 14 items : [ 15 'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste', 16 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 17 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 18 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/', 19 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 20 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage', 21 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak', 22 'anchor', 'link', 'unlink', '|', 'about' 23 ], 24 }); 25 } 26 27 </script>
//调用处,也就是载入插件的页面
$(function(){
    kedit('textarea[name="content"]');
})

 ******如果是通过jquery传参到后端,会导致无法提交的情况。

转载于:https://www.cnblogs.com/520blog/p/6774913.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值