//文本编辑器
KindEditor.ready(function(K) {
//活动说明
editorArticle = K.create('#replyinfo', {
width : '570px',
height: '300px',
minWidth: '580px',
minHeight: '300px',
resizeMode : 1,
uploadJson : '/WMall/kindeditor/UploadJson',
resizeType : 1,
//allowPreviewEmoticons : false,
allowImageUpload : true,
items : [
'undo', 'redo', '|', 'cut', 'copy', 'paste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'clearhtml', 'quickformat', 'selectall', '|', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', '|', 'table', 'hr', 'pagebreak',
'anchor', 'link', 'unlink', '|', 'source', 'fullscreen', 'preview'
]
});
});
页面:
<tr>
<td style="width:25%; background-color:#f5f5f5;">活动说明</td>
<td>
<textarea name="replyinfo" id="replyinfo" cols="100" rows="8">${entity.replyinfo}</textarea>
</td>
</tr>