wangEditor icon indicating copy to clipboard operation
wangEditor copied to clipboard

fix( list-module issue 5821): ol ul list 嵌套 编辑区及 HTML 没有正确展示 bug

Open cycleccc opened this issue 1 year ago • 1 comments

相关 issue https://github.com/wangeditor-team/wangEditor/issues/5821 https://github.com/wangeditor-team/wangEditor/issues/5709

cycleccc avatar Apr 16 '24 09:04 cycleccc

bug成因:

list 在退格时没有考虑同级连续节点的 ordered 导致 编辑区 和 HTML 的 渲染错乱

解决思路:

对于编辑区的bug,在跟踪退格事件时查看是否有同级连续兄弟 list 节点 有的话 判断 ordered 不同则改变 ordered 对于HTML的bug,在编辑区形成正确DOM后同样判断同级连续 的 list 的 ordered 保持一致

cycleccc avatar Apr 16 '24 09:04 cycleccc