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

同时存在粗体文本和细体文本,并选中粗体细体交界处的文本输入,会导致展示的内容和获取的getHtml不一致。 #5856

Open
penglipengli opened this issue May 10, 2024 · 4 comments

Comments

@penglipengli
Copy link

penglipengli commented May 10, 2024

bug 描述

1.初始状态:输入内容前半部分为加粗,后半部分为不加粗
image

2.选中加粗和不加粗交界处的不加粗文本,进行加粗操作,然后鼠标失焦
image

3.再次选中步骤2的文本,取消加粗,并在选中状态试图将该文本改为其他文字“改”。

image
此时会出现2个改,前一个加粗,后一个不加粗,但调用getHtml方法获取的内容和展示的内容不一致:
image

你预期的样子是?

选中输入不会重复出现两个“改”字,和getHtml获取的内容一致

系统和浏览器及版本号

  • 操作系统:windows
  • 浏览器和版本

image

wangEditor 版本

5.1.23

demo 能否复现该 bug ?


image

在线 demo

最小成本的复现步骤

步骤见上述描述

@cycleccc
Copy link

会不会是浏览器版本或输入法问题,我按照你的流程来没复现

@penglipengli
Copy link
Author

penglipengli commented May 23, 2024

会不会是浏览器版本或输入法问题,我按照你的流程来没复现

你的浏览器版本是什么。我是chrome 113.0.5672.127

@cycleccc
Copy link

会不会是浏览器版本或输入法问题,我按照你的流程来没复现

你的浏览器版本是什么。我是chrome 113.0.5672.127

最新版 chrome 125.0.6422.61,复现不了

@cycleccc
Copy link

#5866 他也是低版本 chrome 或 ie 会出现问题,我记录一下,有空看看

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