先上图:

下载好kindEditor的资源放到static下,如下图:

在Html页面中写入JS代码,由于原始的富文本编辑器样式太丑了,换个theme,这里刚使用时改主题耗了太久时间,最后发现是CSS样式引入的错误和themes后面的参数写错,直接拿代码用的风险太大了(是我太菜了┭┮﹏┭┮)
<link rel="stylesheet" href="/static/js/kindeditor/themes/darkGray/darkGray.css"/>
<link rel="stylesheet" href="/static/js/kindeditor/themes/darkGray/style.css.css"/>
<p><textarea class="textarea" onfocus="" id="answerContent" name="content" ></textarea></p>
KindEditor.ready(function (K) {
editor = K.create('textarea[id="questionContent"]', {
themeType : 'darkGray',
allowFileManager: true,
width:"1182px",
basePath : '/static/js/kindeditor/',
formatUploadUrl :false,
resizeType : 0,
autoHeightMode : false,
allowPreviewEmoticons : true,
allowImageUpload : true,
filePostName:'file',
items : ["source","fontname","fontsize","forecolor","hilitecolor",
"bold","italic","underline","removeformat","link","unlink",
"justifyleft","justifycenter","justifyright","insertorderedlist",
"insertunorderedlist","emoticons","image","insertfile","media","embedVideo",
"uploadVideo","hidePassword","hideComment","hideGrade","hidePoint","hideAmount","fullscreen"],
afterChange : function() {
this.sync();
}
});
});