-
Notifications
You must be signed in to change notification settings - Fork 334
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
Discussion thread links #4483
Discussion thread links #4483
Conversation
@@ -164,6 +166,15 @@ const CommentEditor = (props: Props) => { | |||
} | |||
} | |||
} | |||
const links = linkify.match(text) |
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.
Initially I included this code in useLinks
to keep things DRY but as it's only being repeated twice and as we need the above onPasteText
code with the ref
in this file, I felt it'd be best to keep it in the same function
this isn't working for me:
|
Interesting - I couldn't replicate that behaviour in the comment editor but if I followed steps 1-3 and then did ctrl+v into the task editor, the link was underlined but didn't work. I'm now trimming the whitespace which has resolved the task editor issue and I think it should resolve the comment editor issue too. |
success! |
This PR resolves issue #4345.
Consideration
Copying and pasting between Draft JS editors doesn't work very well - font styles and hyperlinks aren't always maintained. This is a known issue in Draft JS. Someone from the community has created a PR with a suggested solution that hasn't been approved but I'd be happy to look into it.
However, I can't imagine that many of our users are copying & pasting text that they've just pasted so I suggest that I create an issue for this and prioritise it if any user tension pops up.
AC