大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
1.HTML代码:
<tr id=”illegal”>
<th></th>
<td colspan=”3″ style=”width:85%”>
<textarea id=”illegaleditor” name=”report.illegal” style=”width:98%;height:250px;”>
</textarea>
</td>
</tr>
2.JS代码
需要引入’${basePath}/s/js/kindeditor/kindeditor.js’
var illegaleditor = “illegaleditor”;
setTimeout(function () {
illegalEditor = KindEditor.create(‘#’ + illegaleditor, {
resizeType: 1,
uploadJson: ‘kindeditor/upload_json.ashx’,
fileManagerJson: ‘kindeditor/file_manager_json.ashx’,
allowPreviewEmoticons: false,
allowImageUpload: false,
items: [
‘fontname’, ‘fontsize’, ‘|’, ‘forecolor’, ‘hilitecolor’, ‘bold’, ‘italic’, ‘underline’,
‘removeformat’, ‘|’, ‘justifyleft’, ‘justifycenter’, ‘justifyright’, ‘insertorderedlist’,
‘insertunorderedlist’, ‘|’, ’emoticons’, ‘link’]
});
}, 0);
3.修改和详情赋值
success:function(text){
var modData = nui.decode(text);
illegaleditor .html(modData.illegaleditor );
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/167761.html原文链接:https://javaforall.net