如何在一个页面上添加多个KindEditor富文本编辑器

 我来答
就烦条0o
2016-08-01 · 知道合伙人软件行家
就烦条0o
知道合伙人软件行家
采纳数:33315 获赞数:46484
从事多年系统运维,喜欢编写各种小程序和脚本。

向TA提问 私信TA
展开全部
<script type="text/javascript">
var options = {
filterMode : true,
allowImageUpload : false,
allowFlashUpload : false,
allowMediaUpload : false,
allowFileManager : false,
items : ['fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'flash', 'media','|', 'link','unlink','fullscreen'],
width : '600px',
height: '250px'
};
var editor = new Array();
KindEditor.ready(function(K) {
editor[0] = K.create("#awards",options);
editor[1] = K.create("#description",options);
// 往下可以添加更多kindeditor...
});
</script>

注:代码中的#awards和#description是要添加kindeditor的页面元素id
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式