在ueditor進行第二次以load的方式進行加載的時候script部分沒有被編輯器替換掉,解決方案爲:編輯器
var editor1 = new UE.ui.Editor({ toolbars: [ ['simpleupload','snapscreen',"fullscreen"] ] } ); editor1.render("***");
一個實例只能進行一次render函數,所以當有兩個區域要同時替換掉時候,須要新建兩個實例,同時進行render操做,便可正常使用函數
//實例化編輯器 var editor1 = new UE.ui.Editor({ toolbars: [ ['simpleupload','snapscreen',"fullscreen"] ] } ); editor1.render("***"); //實例化編輯器 var editor2 = new UE.ui.Editor({ toolbars: [ ['simpleupload','snapscreen',"fullscreen"] ] } ); editor2.render("****")