wangEditor icon indicating copy to clipboard operation
wangEditor copied to clipboard

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

Open wangdong1209 opened this issue 1 year ago • 4 comments

问题描述

请输入遇到的问题...

wangEditor 版本

请输入内容……

是否查阅了文档 ?

(文档链接 www.wangeditor.com

是/否

最小成本的复现步骤

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

  • 步骤一
  • 步骤二
  • 步骤三

wangdong1209 avatar Sep 20 '24 07:09 wangdong1209

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

cycleccc avatar Sep 20 '24 07:09 cycleccc

可以加你微信吗

---原始邮件--- 发件人: @.> 发送时间: 2024年9月20日(周五) 下午3:57 收件人: @.>; 抄送: @.@.>; 主题: Re: [wangeditor-team/wangEditor] getHtml(),自己写的方法,和官网给的demo中获取的内容差别很大,自己写的getHtml()只能获取div和span标签 (Issue #5956)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

wangdong1209 avatar Sep 20 '24 08:09 wangdong1209

我的微信15399076527,你的呢

---原始邮件--- 发件人: @.> 发送时间: 2024年9月20日(周五) 下午3:57 收件人: @.>; 抄送: @.@.>; 主题: Re: [wangeditor-team/wangEditor] getHtml(),自己写的方法,和官网给的demo中获取的内容差别很大,自己写的getHtml()只能获取div和span标签 (Issue #5956)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

wangdong1209 avatar Sep 20 '24 08:09 wangdong1209

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

cycleccc avatar Sep 20 '24 10:09 cycleccc