Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

织梦百度编辑器UEditor超出最大字数后不能完整保存解决方法

织梦教程:百度编辑器UEditor超出最大字数后不能完整保存解决方法!dedecms教程想要实现在达到最大字数的时候,就禁止再继续输入了或者超出字数限制后,不能完整保存内容。

织梦教程:百度编辑器UEditor超出最大字数后不能完整保存解决方法!dedecms教程想要实现在达到最大字数的时候,就禁止再继续输入了或者超出字数限制后,不能完整保存内容。

查阅很多资料,浩沐资源网总结解决方法如下:

第一步:在/include/ueditor/ueditor.all.js中找到这两行注释掉

countDom.innerHTML = errMsg;
 
editor.fireEvent(“wordcountoverflow”)

第二步:在注释点的两行下面写上这三行就搞定了

var content = editor.getContentTxt();
 
editor.setContent(content.substring(0,max));
 
editor.focus(true);
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

使用composer安装和使用Endroid/QrCode来生成二维码

2022-6-4 9:00:00

编程技巧

织梦list列表页调用body内容的教程

2022-6-6 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索