KindEditor的用法

//js部分 

var editor;

KindEditor.ready(function(K) {

editor = K.create('#description', {

minWidth:480,

minHeight:300,

items:["undo", "redo","justifyleft","justifycenter","justifyright",

      "justifyfull","subscript","superscript",

      "forecolor","hilitecolor","bold","italic","underline","strikethrough"],

cssPath : '../../../kindeditor-4.1.10/plugins/code/prettify.css',

allowFileManager : true,

uploadJson : 'fileUploadAction!fileUpload',

fileManagerJson : 'fileUploadAction!insertFile'

});

prettyPrint();

});

//标签(页面)

<tr>

<th valign="top">最新活动</th>

<td colspan="3"><textarea name="description" id="description" style="width:480px;"></textarea></td>

</tr>


你可能感兴趣的:(KindEditor的用法)