Skip to content

fix: 有序列表无序列表嵌套导致getHtml返回结果出错#5798

Open
caizheng111 wants to merge 1 commit into
wangeditor-team:masterfrom
caizheng111:fix-ul-ol
Open

fix: 有序列表无序列表嵌套导致getHtml返回结果出错#5798
caizheng111 wants to merge 1 commit into
wangeditor-team:masterfrom
caizheng111:fix-ul-ol

Conversation

@caizheng111
Copy link
Copy Markdown

问题复现步骤:

  1. 进入https://www.wangeditor.com/demo/get-html.html
  2. 输入以下文本
    image
  3. 可以发现获取到的html中将最下面的无序修改成了有序。
  4. 以上错误会在有序列表无序列表嵌套出现。
  5. 主要原因时源码中的getStartContainerTagNumber、getEndContainerTagNumber函数出错。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我运行了代码测试后发现似乎并没有解决编辑器有序列表无序列表渲染错误的问题,能进一步讨论一下吗

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

Successfully merging this pull request may close these issues.

2 participants