码迷,mamicode.com
首页 > 其他好文 > 详细

KindEditor的用法

时间:2015-10-21 10:56:11      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:

//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的用法

标签:

原文地址:http://my.oschina.net/u/2467394/blog/519733

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!