首页 > 代码库 > kindeditor去掉网络图片

kindeditor去掉网络图片

 1 <script charset="utf-8" src="http://www.mamicode.com/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"]‘);
})

 

kindeditor去掉网络图片