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

feat(rich-text-editor) - addition of link component #812

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

gavin-everett-genesys
Copy link
Collaborator

Copy link

github-actions bot commented Jan 7, 2025

private root: HTMLElement;

@Prop()
disabled: boolean = false;
Copy link
Collaborator Author

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. */
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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
@gavin-everett-genesys gavin-everett-genesys merged commit c734ec0 into main Jan 9, 2025
3 checks passed
@gavin-everett-genesys gavin-everett-genesys deleted the feature/COMUI-2981 branch January 9, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants