Last active
August 29, 2015 13:59
-
-
Save gucheen/10582513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 编辑器初始化代码 start */ | |
var editor; | |
KindEditor.ready(function(K) { | |
editor = K.create('#tougao_content', { | |
width: '580px', | |
resizeType : 1, | |
allowPreviewEmoticons : false, | |
allowImageUpload : false, /* 开启图片上传功能,不需要就将true改成false */ | |
items : [ | |
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', | |
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', | |
'insertunorderedlist', '|', 'emoticons', 'image', 'link'] | |
}); | |
}); | |
/* 编辑器初始化代码 end */ | |
//width | |
//编辑器的宽度,可以设置px或%,比textarea输入框样式表宽度优先度高。 | |
//数据类型: String | |
//默认值: textarea输入框的宽度 | |
//示例: | |
K.create('#id', { | |
width : '700px' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment