wangEditor icon indicating copy to clipboard operation
wangEditor copied to clipboard

设置Html 会丢失链接

Open bluefrankey opened this issue 1 year ago • 1 comments

问题描述

如果html如下 <p><span> <a href="http://baidu.com" target="_blank">原文</a> </span> </p> editor.setHtml(tempHtml); 在编辑器里的 “原文” 两个字会丢失链接

wangEditor 版本

最新版本

是否查阅了文档 ?

最小成本的复现步骤

  • 步骤一 打开https://www.wangeditor.com/demo/set-html.html
  • 步骤二 选择 设置 HTML
  • 步骤三 填入 <p><span> <a href="http://baidu.com" target="_blank">原文</a> </span> </p>
  • 步骤四 按 “Set Html”
  • 步骤五 在编辑器里 的原文 无超链接

bluefrankey avatar Feb 05 '24 09:02 bluefrankey

企业微信截图_17084179948786 按编辑器要求的格式写就可以了 image

FreeLois avatar Feb 20 '24 08:02 FreeLois