wangEditor
wangEditor copied to clipboard
使用 setHtml 设置内容时(内容包含 table 表格),table 表格显示错误(里面的内容都没了)
bug 描述
使用 setHtml 设置内容时(内容包含 table 表格),table 表格显示错误(里面的内容都没了)
你预期的样子是?
正常显示 table 表格样式
系统和浏览器及版本号
- 操作系统 MacBook Pro (15-inch, 2017)
- 浏览器和版本 126.0.6478.127
wangEditor 版本
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "5.1.10",
demo 能否复现该 bug ?
能
- 中文 demo https://www.wangeditor.com/demo/
- English demo https://www.wangeditor.com/demo/?lang=en
在线 demo
请尽量提供在线 demo (推荐以下网站),帮助我们最低成本复现 bug
- https://codesandbox.io/
- https://codepen.io/
- https://stackblitz.com/
最小成本的复现步骤
直接在网站粘贴上面的富文本字符串即可复现问题:https://www.wangeditor.com/demo/set-html.html
格式乱了,用 markdown 代码块包一下,不然不好复制。
格式乱了,用 markdown 代码块包一下,不然不好复制。
又重新提了一个,这个怎么删掉呀 o.o
格式乱了,用 markdown 代码块包一下,不然不好复制。
又重新提了一个,这个怎么删掉呀 o.o
删不掉的,你可以重新编辑
https://cycleccc.github.io/demo/set-html.html 你可以用这个试试,wangeditor-next 对表格的支持更好。
在 wangeditor-next 试了下,表现正常,你可以尝试切换 wangeditor-next,也可以通过自定义扩展的方式将 补全 wangeditor 缺失的渲染部分,但不保证成功。