日期:2014-05-17  浏览次数:20643 次

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>

------解决方案--------------------
不会吧,取值的代码呢?,我这边有几个没什么问题哦
------解决方案--------------------
废话,你的插件都在同一个路径下,肯定只能取到第一个啊。