KindEditor的用法

//js部分 css

var editor;網絡

KindEditor.ready(function(K) {spa

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

minWidth:480,圖片

minHeight:300,ip

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

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

      "forecolor","hilitecolor","bold","italic","underline","strikethrough"],圖片上傳

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

allowFileManager : true,

allowImageRemote : false ,//取消網絡圖片上傳  

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>

相關文章
相關標籤/搜索