出现的问题:在同一个页面中,创建了两个以上百度的 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");


更多推荐

如何在同一个表单中加载两个以上百度的 UEditor HTML 编辑器