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

getHtml(),自己写的方法,和官网给的demo中获取的内容差别很大,自己写的getHtml()只能获取div和span标签 #5956

Open
wangdong1209 opened this issue Sep 20, 2024 · 4 comments

Comments

@wangdong1209
Copy link

问题描述

请输入遇到的问题...

wangEditor 版本

请输入内容……

是否查阅了文档 ?

(文档链接 www.wangeditor.com

是/否

最小成本的复现步骤

(请告诉我们,如何最快的复现该问题?)

  • 步骤一
  • 步骤二
  • 步骤三
@wangdong1209 wangdong1209 changed the title getHtml(),自己写的方法,和官网给的demo中获取的内容差别很大,自己写的个体、 getHtml(),自己写的方法,和官网给的demo中获取的内容差别很大,自己写的getHtml()只能获取div和span标签 Sep 20, 2024
@cycleccc
Copy link

有更详细的信息吗,getHtml 基础元素是没有 div 的,只有如 video 是包了一层 div,或是 自定义的 元素 也可以 包一层 带 type 的 div

@wangdong1209
Copy link
Author

wangdong1209 commented Sep 20, 2024 via email

@wangdong1209
Copy link
Author

wangdong1209 commented Sep 20, 2024 via email

@cycleccc
Copy link

去掉多余 div 标签或是 使用 dangerouslyInsertHtml api

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

2 participants