UEditor百度编辑器在html代码模式无法更新内容的解决办法
分类:程序开发 Tags: UEditor 编辑器 评论:0 浏览:3361 最近更新时间:2018/12/10 16:51:52
使用UEditor百度编辑器编辑器发现一个bug,就是切换到html源代码模式发现,无法保存更新的内容,保存后内容还是老的。可以通过以下办法解决。
<script type="text/plain" id="content" name="content"><%=rs("content")%></script>
<script type="text/javascript">UE.getEditor("content")</script>
<script type="text/javascript">
function getContent() {
if(UE.getEditor("content").queryCommandState('source')!=0)
UE.getEditor("content").execCommand('source');
}
</script>
<input name="Submit" type="submit" value="修 改" OnClick="getContent()">主要是是增加了代码
<script type="text/javascript">
function getContent() {
if(UE.getEditor("content").queryCommandState('source')!=0)
UE.getEditor("content").execCommand('source');
}
</script>提交按钮增加代码
OnClick="getContent()"
本文地址:/635/
-
• Dreamweaver 正则表达式字符查找替换方法
• UEditor百度编辑器1.4.3.3 ASP Utf-8版,上传图片文件服务器返回错误解决办法
• asp如何读取txt文本内容代码
• ASP数据库连接、显示、添加、删除、查询等简单操作教程
• asp使用CDO.Message发送邮件详细代码集合
• ASP实现点击链接直接下载文件的代码
• 微软未公开的小写转大写函数NumberString
• ASP截取网址URL中的顶级域名正则表达式
• 图片自动按宽高比例缩小的js代码
• 解决asp日语网站access数据库含日文出现“内存溢出”问题