-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Implement fast keystroke auto linking of link–like text content in editable #4722
Comments
The autolinking feature will make this one either totally unnecessary or a low-priority one. It depends on autolinking aggressiveness which is a think that needs some attention. We cannot autolink things which users may not want to link – e.g. things that were already unlinked :D. I mentioned this case because I saw that GDocs can do it and I've been using it myself. IIRC, GDocs isn't autolinking when you paste content and often I make a draft of some article outside and then paste it. So if we follow GDocs behaviour, this feature would be nice. This feature could also be nice if someone didn't want to enable autolinking. I know that some auto-corrections can be frustrating – although, usually it's about correcting the first letter in a sentence, or similar uncertain things – linking sounds safer. |
👏 I think that link feature will have some nice tools to check what is around the selection in editable anyway, so this could be a very easy thing to implement using that API. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
A followup of https://github.com/ckeditor/ckeditor5-link/issues/2#issuecomment-240374891.
The whole idea comes down to two cases:
Basic auto linking
As in https://github.com/ckeditor/ckeditor5-link/issues/6. If pasted content matches link pattern, it should be converted into
<a href="http://foo">http://foo</a>
. If not, or there's something else beside white spaces in the clipboard, it should be pasted as plain text.Keystroke auto linking
If there's more in the clipboard (or simply in the content) than just a link, user can move selection to the link text, and use keyboard shortcut to automatically convert it into an
<a>
tag.The text was updated successfully, but these errors were encountered: