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

Link extension how to add placeholder? #467

Open
JiaWenjie1001 opened this issue Jun 13, 2023 · 3 comments
Open

Link extension how to add placeholder? #467

JiaWenjie1001 opened this issue Jun 13, 2023 · 3 comments
Labels

Comments

@JiaWenjie1001
Copy link

Link extension how to add placeholder?

@okijhhyu
Copy link

okijhhyu commented Jul 8, 2023

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

@JiaWenjie1001
Copy link
Author

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

vue2

@okijhhyu
Copy link

okijhhyu commented Jul 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants