-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(rich-text-editor) - addition of link component #812
Conversation
Demo will be published at https://apps.inindca.com/common-ui-docs/genesys-webcomponents/feature/COMUI-2981 |
private root: HTMLElement; | ||
|
||
@Prop() | ||
disabled: boolean = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A question from UX was should we disable this link
action until a piece of text is highlighted ? I
@@ -178,6 +192,60 @@ <h2>No action divider</h2> | |||
editor.commands.setParagraph(); | |||
}) | |||
|
|||
/* Link action */ | |||
/* The code below is just an example and can be altered to your preference. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be betters ways to do this but the dev has full control of how they want it to work.
const { Editor } = await import('https://cdn.jsdelivr.net/npm/@tiptap/core@2.2.2/+esm'); | ||
const StarterKit = (await import('https://cdn.jsdelivr.net/npm/@tiptap/starter-kit@2.2.2/+esm')).default; | ||
const Underline = (await import('https://cdn.jsdelivr.net/npm/@tiptap/extension-underline@2.2.2/+esm')).default; | ||
const Heading = (await import('https://cdn.jsdelivr.net/npm/@tiptap/extension-heading@2.7.4/+esm')).default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was included in the starter kit so just removed this import.
adding extra functionality to link ✅ Closes: COMUI-2981
72f25ae
to
ce98a6b
Compare
Ticket : https://inindca.atlassian.net/browse/COMUI-2981