www.1862.net > uEDitor BEForEpAstE

uEDitor BEForEpAstE

editor_a.addListener('beforepaste', myEditor_paste); function myEditor_paste(o, html) { html.html = ""; alert("只能录入不能粘贴"); }

UEditor内置了无格式粘贴的功能,只需要简单的配置即可。 1、修改ueditor.config.js,开启retainOnlyLabelPasted,并设置为true 2、开启pasteplain,并设为true 3、开启filterTxtRules过滤规则。

editor_a.addListener('beforepaste', myEditor_paste); function myEditor_paste(o, html) { html.html = ""; alert("只能录入不能粘贴"); }

网站地图

All rights reserved Powered by www.1862.net

copyright ©right 2010-2021。
www.1862.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com