UEditor百度编辑器在html代码模式无法更新内容的解决办法
分类:程序开发 Tags: UEditor 编辑器 评论:0 浏览:3020 最近更新时间: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/
-
• opencart 3.0 PayPal Payments Standard支付没有传递收货地址解决办法
• 去除新版宝塔面板首页的强制手机登录窗口教程
• 支付宝即时到账POST按钮代码
• asp获取内容中第一张图片和全部图片代码
• win2003空间支持access2007、2010数据库.accdb的方法
• ASP经常用到的代码,比较全,不可不看!
• ASP输出26个英文字母的方法代码
• ASP几种常见分页代码
• IE6中使用first-letter首字符css的特殊写法
• 获取文件的名称和扩展名ASP代码
-
• 如何防止ACCESS数据库被下载的解决方法
• .htaccess中的apache rewrite规则写法详解
• 大学生网页设计毕业论文下载-南昌科技大学网站下载及说明书(本人毕业设计作品)
• Google Apps Gmail企业邮箱如何添加新的邮箱帐户
• 如何点亮QQ在线客服图标,解决QQ图标显示灰色,提示未启用的问题
• 体验搜狗免费企业邮局系统,我又有自己的域名邮箱了!
• ASP格式化显示时间的函数代码
• 做有用的网页,做有利于网络营销的网页设计
• 网页Title标题、Keywords关键词、description描述该怎么写才利于网站优化
• 企业建站规范有哪些具体内容?