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

Writer: adding link, insert text when no selected #5684

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

distantnative
Copy link
Member

This PR …

For the Writer link and email dialog, insert the url/email address when dialog is applied and no text has been selected.

Fixes

@distantnative distantnative added this to the 4.0.0-beta.2 milestone Sep 23, 2023
@distantnative distantnative requested a review from a team September 23, 2023 17:15
@distantnative distantnative self-assigned this Sep 23, 2023
@distantnative distantnative linked an issue Sep 23, 2023 that may be closed by this pull request
Copy link
Member

@afbora afbora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR fixes the issue but broke a behaviour that you can reproduce the issue with following steps:

  1. Select a word
  2. Insert a link to the word
  3. Click to the linked word (not select whole linked text)
  4. You'll see link mark is blue as active
  5. Click to link button again
  6. Update url or title
  7. Save and see the issue

@distantnative
Copy link
Member Author

distantnative commented Sep 24, 2023

  1. Save and see the issue

@afbora Please always describe what's the issue. Best with screenshots or videos. Cause there is always the chance that I or others are not aware of an issue - and then we won't just see it without being pointed directly to it. 😅

I just tried your steps and for me it looks all right:

Screen.Recording.2023-09-24.at.17.00.52.mov

@afbora
Copy link
Member

afbora commented Sep 24, 2023

@distantnative Sorry Nico 🙈 You're right. Here my screencast:

link.mp4

Btw this issue not exists for beta.1

Copy link
Member

@bastianallgeier bastianallgeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we need to check if the cursor is already on an existing link

@bastianallgeier bastianallgeier self-requested a review September 25, 2023 08:49
@bastianallgeier bastianallgeier dismissed their stale review September 25, 2023 08:49

Too quick to review

@bastianallgeier
Copy link
Member

It would have been cool to add this to beta.2 but I don't find the time to check out how this could be solved today. Let's fix it in beta.3. I think the issue is pretty clear.

@afbora afbora force-pushed the v4/enhancement/writer-link-insert-text branch from ebbc005 to 30c4859 Compare October 4, 2023 17:22
@afbora
Copy link
Member

afbora commented Oct 4, 2023

I've pushed a fix about the issue, check out: 30c4859

@distantnative
Copy link
Member Author

@afbora Oh I like the way/idea - need to test it in the next days!👍

@bastianallgeier
Copy link
Member

I've just tested it and it works great!

@bastianallgeier bastianallgeier merged commit 511a3ab into v4/develop Oct 6, 2023
@bastianallgeier bastianallgeier deleted the v4/enhancement/writer-link-insert-text branch October 6, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[v4] Writer field: confusing link button with no selection
3 participants