wangEditor
wangEditor copied to clipboard
问题:section标签可以在编辑器被正确渲染吗?
bug 描述
功能做完导入了老数据之后,发现在编辑器回显不正常,但是可以用v-html渲染
你预期的样子是?
希望编辑器的回显能和v-html显示的一样
系统和浏览器及版本号
- 操作系统 windows 10、windows 11
- 浏览器和版本 chrome 121.0.6167.139
wangEditor 版本
"@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", "@wangeditor/plugin-upload-attachment": "^1.1.0"
demo 能否复现该 bug ?
不能
最小成本的复现步骤
(请告诉我们,如何最快的复现该 bug)
- 步骤一
- 给Editor组件的v-model绑定值就会出现
- 步骤二
- 这里是历史数据的值
- "<section style="text-align: justify;"><section style="text-align: left; justify-content: flex-start; display: flex; flex-flow: row; margin-top: 10px; margin-bottom: 10px; transform: translate3d(4px, 0px, 0px); position: static;" powered-by="xiumi.us"><section style="display: inline-block; width: auto; vertical-align: top; align-self: flex-start; flex: 0 0 auto; background-color: rgb(142, 201, 101); border-style: solid; border-width: 1px; border-color: rgb(62, 62, 62); min-width: 5%; max-width: 100%; height: auto;"><section style="text-align: center; justify-content: center; display: flex; flex-flow: row; transform: translate3d(-4px, 0px, 0px); margin-top: -5px; margin-bottom: 5px; position: static;" powered-by="xiumi.us"><section style="display: inline-block; width: 100%; vertical-align: top; align-self: flex-start; flex: 0 0 auto; background-color: rgb(255, 255, 255); border-style: solid; border-width: 1px; border-color: rgb(62, 62, 62); padding: 13px;"><section style="text-align: left; justify-content: flex-start; display: flex; flex-flow: row; position: static;" powered-by="xiumi.us"><section style="display: inline-block; vertical-align: bottom; width: auto; align-self: flex-end; flex: 0 0 auto; min-width: 5%; max-width: 100%; height: auto; margin-right: 10px;"><section style="text-align: justify;" powered-by="xiumi.us"><p style="margin-top: 0px; margin-bottom: 0px;"><b style="font-size: large;">背景信息<section style="display: inline-block; vertical-align: bottom; width: auto; min-width: 5%; max-width: 100%; flex: 0 0 auto; height: auto; align-self: flex-end;"><section style="text-align: center; position: static;" powered-by="xiumi.us"><section style="display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-style: solid; border-width: 0px 1px 1px 0px; border-color: rgb(62, 62, 62); background-image: linear-gradient(to right top, rgba(0, 0, 0, 0) 48%, rgb(0, 0, 0) 48%, rgb(0, 0, 0) 52%, rgba(0, 0, 0, 0) 52%);"><section style="text-align: justify;" powered-by="xiumi.us"><p style="margin-top: 0px; margin-bottom: 0px; font-size: large;">
"