element-tiptap icon indicating copy to clipboard operation
element-tiptap copied to clipboard

Link extension how to add placeholder?

Open JiaWenjie1001 opened this issue 1 year ago • 3 comments

Link extension how to add placeholder?

JiaWenjie1001 avatar Jun 13 '23 08:06 JiaWenjie1001

Link extension how to add placeholder? It's for vue 2 or vue 3?

okijhhyu avatar Jul 08 '23 21:07 okijhhyu

链接扩展如何添加占位符?是针对 vue 2 还是 vue 3?

vue2

JiaWenjie1001 avatar Jul 20 '23 10:07 JiaWenjie1001

u should do custom link extenstion, import link from element-tiptap

link.extends([
menuBtnView(editorContext: MenuData) {
   return {
     component: AddLinkCommandButton,
     componentProps: {
       editorContext,
     },
   };
 }
})

export default link u should do AddLinkCommandButton element tiptap addLinkCommandButton

okijhhyu avatar Jul 20 '23 10:07 okijhhyu