Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

之前解决的bug在v5版本复现了,maxLength 最大字数对粘贴进的文本无效 #5827

Open
SikSok opened this issue Apr 9, 2024 · 1 comment

Comments

@SikSok
Copy link

SikSok commented Apr 9, 2024

bug 描述

之前解决的bug在v5版本复现了,之前Issue地址:#4467

你预期的样子是?

超出maxlength的文本可以被截取复制到富文本中,比如当前富文本已有100字,限制300字,复制300字粘贴,会截取其中(300-100)=200字进入

系统和浏览器及版本号

  • window11
  • chrome浏览器 123.0.6312.59

wangEditor 版本

5.1.23

demo 能否复现该 bug ?

在线 demo

请尽量提供在线 demo (推荐以下网站),帮助我们最低成本复现 bug

最小成本的复现步骤

(请告诉我们,如何最快的复现该 bug)

  • 步骤一:设置一个maxlength,比如300
  • 步骤二:复制一段超出300字数的文本
  • 步骤三:尝试粘贴进入,结果失败
@cycleccc
Copy link

#5831
应该是解决了

@cycleccc cycleccc mentioned this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants