主题: 多个编辑器只能取到第一个编辑器的值 |
作者: robin627, 发布日期: 2013-12-19 17:13:31, 浏览数: 2274 |
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content1"]', { uploadJson : '../kindeditor/jsp/upload_json.jsp', allowFileManager : true, resizeType:0, }); var editor2 = K.create('textarea[name="content2"]', { uploadJson : '../kindeditor/jsp/upload_json.jsp', allowFileManager : true, resizeType:0, }); var editor3 = K.create('textarea[name="content3"]', { uploadJson : '../kindeditor/jsp/upload_json.jsp', allowFileManager : true, resizeType:0, }); var editor4 = K.create('textarea[name="content4"]', { uploadJson : '../kindeditor/jsp/upload_json.jsp', allowFileManager : true, resizeType:0, }); });
<textarea id="content1" name="content1" cols="100" rows="10"></textarea> <textarea id="content2" name="content2" cols="100" rows="10"></textarea> <textarea id="content3" name="content3" cols="100" rows="10"></textarea> <textarea id="content4" name="content4" cols="100" rows="10"></textarea> |