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返回的HTML带id之类的唯一标识位 #287

Open
huangzhang-ops opened this issue Oct 24, 2024 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@huangzhang-ops
Copy link

问题描述

有没有办法使getHtml返回的HTML带id之类的唯一标识位

wangEditor 版本

5.6.2

是否查阅了文档 ?

(文档链接 https://cycleccc.github.io/docs/

是/否

最小成本的复现步骤

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

  • 步骤一
  • 步骤二
  • 步骤三
@huangzhang-ops
Copy link
Author

Html里面的比如span、table、img 等可以有唯一标识位

@cycleccc
Copy link
Owner

考虑要做,现在的计划是给每一个元素加上唯一 ID。

@huangzhang-ops
Copy link
Author

静候佳音

@openlearnc
Copy link

像tinymce、ckeditor一样可以编辑源码就能很容易实现,tinymce使用弹窗,用textarea显示编辑源码,ckeditor对一些html标签转义、反转义再回显到编辑器,当然,为了整洁,还需要对html代码格式化。

@openlearnc
Copy link

@cycleccc 是否考虑加入html源码编辑功能。

@cycleccc cycleccc added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants