使用UEditor百度编辑器编辑器发现一个bug,就是切换到html源代码模式发现,无法保存更新的内容,保存后内容还是老的。可以通过以下办法解决。
function getContent() {
if(UE.getEditor("content").queryCommandState('source')!=0)
UE.getEditor("content").execCommand('source');
}
主要是是增加了代码
function getContent() {
if(UE.getEditor("content").queryCommandState('source')!=0)
UE.getEditor("content").execCommand('source');
}
提交按钮增加代码OnClick="getContent()"
发表评论
您的IP:117.42.169.163,来自:江西省上饶市