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

ol ul list 嵌套 编辑区及 HTML 没有正确展示 bug #5821

Open
cycleccc opened this issue Apr 3, 2024 · 4 comments
Open

ol ul list 嵌套 编辑区及 HTML 没有正确展示 bug #5821

cycleccc opened this issue Apr 3, 2024 · 4 comments

Comments

@cycleccc
Copy link

cycleccc commented Apr 3, 2024

bug 描述

issue5789

根据此issue延伸出两个百分百复现bug

image

  • 编辑区在 delete 退格后 level正确降级 但是 ordered 没有改为同级 有序 list ,HTML 正确展示了 list 结构
  • 在修改 有序list为无序list后编辑区 HTML 并没有正确改为无序 list

你预期的样子是?

  • 编辑区在 delete 退格后 ordered 改为同级有序 list
  • 在修改 有序list为无序list后编辑区 HTML 正确改为无序 list

系统和浏览器及版本号

  • 操作系统:win10
  • 浏览器和版本:chrome 123.0.6312.59

wangEditor 版本

wangeditor5.1.23

demo 能否复现该 bug ?

最小成本的复现步骤

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

  • 步骤一
    按图示创建list 1.11 2.22 qq ww
  • 步骤二
    到ww后再回车退格
  • 步骤三
    退格后应当是有序 list 3 但是 编辑区展示的是无序 list 且 HTML 无法变更为 无序 list
@cycleccc
Copy link
Author

cycleccc commented Apr 3, 2024

修复ing

@cycleccc
Copy link
Author

cycleccc commented Apr 3, 2024

第二个 bug html 展示已经修复,现在修复第一个 bug 编辑区退格后的正确显示

@cycleccc
Copy link
Author

cycleccc commented Apr 3, 2024

第一个 bug 已修复,待优化代码后提交 pr

@cycleccc
Copy link
Author

cycleccc commented Apr 7, 2024

已提pr

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

1 participant