BBS项目: KindEditor基本使用

一、下载KindEditor

百度网盘: https://pan.baidu.com/s/1I8Z6WRWeNC8uj9QeW94xCQ

提取码: fivh

下载下来应该是这样的目录结构👇

但是,这里没有C#和Java那些的示例。

这些目录结构大概是这样子的👇

二、在BBS项目里使用KindEditor

1 <p>
2             <p><strong>博客内容</strong></p><textarea name="content" id="content"></textarea>
3         </p>
HTML代码
 1 var editor = KindEditor.create("#content",{
 2         "items":[
 3             "cut","copy","paste","|","plainpaste","wordpaste","|","selectall",
 4             "|","justifyleft","justifycenter","justifyright","justifyfull","|",
 5             "formatblock","|","fontname","fontsize","forecolor","bold","italic",
 6             "|","underline","strikethrough","image","table","emoticons","link","unlink",
 7             "|",'fullscreen',"code","lineheight",
 8         ],
 9     resizeType:0,
10     width:'400px',
11     height:'200px',
12     allowPreviewEmoticons:true,
13     allowImageUpload:true,
14     allowFlashUpload:false,
15     allowMediaUpload:false,
16     allowFileUpload:false,
17     uploadJson: "/static/upload_imgs/",
18     extraFileUploadParams:{"csrfmiddlewaretoken":$("[name='csrfmiddlewaretoken']").val()}
19     })
JS的代码(你要先在HTML里引入kindeditor-all.min.js)

三、参数

http://kindeditor.net/docs/option.html

 

posted @ 2019-02-09 14:43  等待唐僧的电脑人  阅读(115)  评论(0)    收藏  举报