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

有多语言需求,需要切换语言时展示不同的html内容时,sethtml报错或者没有预期效果 #5882

Open
pikashun opened this issue Jun 18, 2024 · 1 comment

Comments

@pikashun
Copy link

bug 描述

vue2开发,单选框切换时,通过getHtml存当前html内容,然后通过setHtml重置当前内容,切回去时重新set之前存的数据,效果未达预期,原HTML内容有换行时会报错,有表格时,反复切换之后,表格会嵌套

你预期的样子是?

根据单选框的切换,正常渲染存储的HTML内容

系统和浏览器及版本号

  • 操作系统
  • 浏览器和版本
    win10,chrome125.0.6422.142

wangEditor 版本

5.1.23

demo 能否复现该 bug ?

不能

在线 demo

请尽量提供在线 demo (推荐以下网站),帮助我们最低成本复现 bug

最小成本的复现步骤

vue环境
加一个多选框,多选框值变化时存储当前值,查询新值是否有对应的HTML数据,有则渲染
双向绑定和setHtml都有问题

  • 步骤一
  • 步骤二
  • 步骤三
@pikashun
Copy link
Author

目前只能创建两个editor,通过每次切换单选框时交替销毁创建才行

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