-
Notifications
You must be signed in to change notification settings - Fork 8.5k
FEATURE: rich editor link ui for editing it #32583
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
base: main
Are you sure you want to change the base?
Conversation
bc77e39
to
3c033a8
Compare
3c033a8
to
7a4687d
Compare
Can we avoid destroying/re-creating when my click ends up not changing the caret position? Kapture.2025-05-13.at.08.12.22.mp4 |
@chapoi It's not due to this work, but it's very annoying that showing a modal is removing the browsers scrollbars, it makes the page all jumpy, I know there are techniques to avoid this, could designers try to give it a go please? Kapture.2025-05-13.at.08.14.01.mp4 |
When I had focus through tab on one of the items menu and I press escape, I don't get back my caret position in the composer. |
Im not sure we should have cursor: pointer on the link given we now treat is as text. It's debatable, given this is still an action. But my reasoning is that seeing the cursor makes me think it's going to open the link right away. What do you think @chapoi ? |
When I edit a link by opening the modal, when I close it I don't get back my caret position in the composer. |
We have no spacing between the back button on edit mode: While in normal mode we have a lot of spacing: Doesnt feel right @chapoi |
Tricky one… I'd say keep the pointer, indicating something can be done feels most important. We could consider using
Yes, I know, but that left side spacing is very hard/impossible to get right due to the use of grid. I'll see if I can tweak it a bit.
Shouldn't that be "unlink"? |
FWIW slack is doing the regular text cursor, and some styling on hover of the link. |
Yes it should, but never got it showing |
@jjaffeux I’ll respond to the other things today, but getting this out first: Unlink is only available for non-autolinks, aren’t they working with I get it may be confusing, but I think supporting removing this autolink will still be confusing, with the caveat of being more work. Making a URL not autolink requires escaping it in the markdown, and I didn't think of a good way to make the escaped text linkable again/autolink on the rich editor - I think it's just simpler to omit the option in this case. |
OK I see, we can for sure start like this and see the feedback we get 👍 |
@jjaffeux I don't think we have an easy alternative in this case, what's destroying the menu is the EDIT: We can skip the menu's default |
Displays a floating toolbar when the selection position is in a link, on desktop. On mobile, replaces the existing toolbar with the link toolbar temporarily.
Desktop
Kapture.2025-04-26.at.15.49.04.1.mp4
Mobile