版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yqwwj001/article/details/79152337
出现的问题:在同一个页面中,创建了两个以上百度的 UEditor 编辑器,但是只有一个起作用了,在向第二个中插入内容时,总插入到第一个中去了。
解决方法:
editorcontent = new baidu.editor.ui.Editor();
//只对第一个起作用
// editorcontent.render('content');
// editorcontent.render('content1');
// editorcontent.render('content2');
//所有的都起作用
UE.getEditor("content");
UE.getEditor("content1");
UE.getEditor("content2");