Jquery 包装所见即所得编辑器';s iframe
我在我的一个项目中使用了sceditor,我需要用一个Jquery 包装所见即所得编辑器';s iframe,jquery,sceditor,Jquery,Sceditor,我在我的一个项目中使用了sceditor,我需要用一个div来包装iframe。然而,当我这样做时,内容会被删除,当然我不知道为什么 有人能解释一下为什么会这样吗 要测试这一点,只需使用firebug在控制台中执行它 $(".sceditor-container iframe").wrap("<div class='some_class'></div>"); $(“.sceditor container iframe”).wrap(“”); 我还尝试过不走运地修改源代
div
来包装iframe
。然而,当我这样做时,内容会被删除,当然我不知道为什么
有人能解释一下为什么会这样吗
要测试这一点,只需使用firebug在控制台中执行它
$(".sceditor-container iframe").wrap("<div class='some_class'></div>");
$(“.sceditor container iframe”).wrap(“”);
我还尝试过不走运地修改源代码。SCE的CSS和js要求所有内容都放在正确的位置。
你为什么需要这样的东西?事实上,这就是我想要的: