-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[FR] Pasting url should paste a link and when there's a highlighted selection it should make it into a link #7214
Comments
Hi @chrisirhc, we support making the selected text into a link format when there is a highlighted selection. If it's not working on your end, there might be an issue. Could you tell me your iOS system version? ScreenRecording_01-15-2025.12-46-32_1.mov |
Ah, tested it a bit more and found that I saw a few issues I'm facing:
I'm on iOS 18.2 . Recording with behavior of GitHub: |
473_1737194797.mp4I have found a stable way to reproduce it, it can be reproduced simply by pasting from the clipboard of the input method |
Is this a related issue...? Since v0.80 on android, urls are no longer being converted to links. Tried top and tailing the url with markdown ie. [ ] |
Created 2 PRs to demonstrate the issues and potential fixes. The fixes are ugly/hacky because I'm a flutter newbie. They're mainly to illustrate the issue.
This is due to the following regex only checking for urls that begin with
AppFlowy-IO/appflowy-editor#1027 Happy to update the fixes based on review suggestions if I receive any review feedback. |
Hi @chrisirhc , Have you had any issues pasting HTTP links on mobile? Such as https://github.com/, or perhaps only links that don't start with HTTP cause the issue? Such as bear://x-callback-url/open-note |
Yes, I'm seeing issues whenever there's the permission screen to allow paste from the application. See AppFlowy-IO/appflowy-editor#1027 . I'm also seeing issues whenever pasting what's copied from the Share button. See #7280 . |
Thank you, there might indeed be a permission issue currently. As for whether links that don't start with HTTP can be pasted as links, we may need to double-check the specifications for links |
Links that don't start with HTTP can be pasted as links. There's no permission issue for that.
They can be, you can test this behaviour today by creating a link manually and using a non-http url works fine. I have clicked on it and it navigates to the other app as expected. Update: I'll split up the bug reports, since they're 3 distinct issues with separate reproduction steps. |
I created 2 bug reports:
I didn't create a bug for non-http protocol urls because I can see potential security concerns and also because there is a workaround (via manually pasting into link text field). |
Description
This is a behaviour documented over at yzhang-gh/vscode-markdown#20 .
Current behaviour on Mobile iOS
Pasting a link results in noop, nothing happens, nothing is pasted. Regardless of whether a selection is highlighted or not.
Expected behaviour
During a past of a URL:
Impact
Additional Context
No response
The text was updated successfully, but these errors were encountered: