Replies: 3 comments
-
在 a 标签上加入自定义属性不行,只能在自定义元素上加入自定义属性。或是你可以看一下源码中的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
那我自定义新元素的话,我看文档里不建议使用a标签,自定义新元素的命名不能用a的话,可以随便起吗?生成的 HTML tag 有什么命名规则吗? |
Beta Was this translation helpful? Give feedback.
0 replies
-
不建议说因为容易冲突,你可以仿照 float-image覆盖 image 的方式来覆盖 a 标签。自定义元素尽量使用 div 来包裹,除非有 想 float-image 这样的覆盖的需求才会复用 wangeditor 内部原有的基础标签。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述
怎样给a标签中添加id等自定义属性?如果使用自定义新元素的话,生成的HTML tag还能用a标签吗?还是说我需要随便另起一个变量名?HTML tag的名称定义有什么要求吗?
wangEditor 版本
wangeditor-next 5.6.27
是否查阅了文档 ?
(文档链接 https://cycleccc.github.io/docs/ )
是
最小成本的复现步骤
(请告诉我们,如何最快的复现该问题?)
Beta Was this translation helpful? Give feedback.
All reactions