KindEditor 多个编辑器只能取到第一个编辑器的值
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>