您的位置:首页 > 其它

kindeditor初学

2015-11-28 21:51 369 查看
富文本编辑器 kindeditor

简单的引入

KindEditor.ready(function(K) {
KE = K.create('textarea[name="content"]', {
items : [ 'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
'anchor', 'link', 'unlink','letterpaper' ],
filterMode : false,
wellFormatMode : false,
newlineTag : 'br',
allowFileManager : true,
afterBlur : function() {
this.sync();
K.ctrl(document, 13, function() {

});
K.ctrl(this.edit.doc, 13, function() {

});
}
});
});


参考资料:

kindeditor详细使用说明(个人)
http://www.doc88.com/p-212659998443.html
KindEditor 4.x documentation
http://www.kindsoft.net/docs/option.html#synctype
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: