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

AutoLink should work on pasting plain-text URL from clipboard #7988

Open
itsopi opened this issue Sep 1, 2020 · 13 comments
Open

AutoLink should work on pasting plain-text URL from clipboard #7988

itsopi opened this issue Sep 1, 2020 · 13 comments
Labels
domain:ui/ux This issue reports a problem related to UI or UX. package:link squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@itsopi
Copy link

itsopi commented Sep 1, 2020

Edit: Currently we do not support auto-linking plain-text URLs when pasting. 

User have to press space after pasting to create a link. The idea is to enable (by default or by configuration) auto-link on pasting plain-text URL.

Original issue below:


📝 Provide detailed reproduction steps (if any)

  1. Paste https://google.bg to notepad (windows).
  2. Copy the link.
  3. Paste the link into editor.

✔️ Expected result

To be converted as a link.

❌ Actual result

Plain text...

📃 Other details

  • Browser: Any
  • OS: Any
  • CKEditor version: latest
  • Installed CKEditor plugins: does not matter, Link is included

If you'd like to see this implemented sooner, add a 👍 reaction to this post.

@itsopi itsopi added the type:bug This issue reports a buggy (incorrect) behavior. label Sep 1, 2020
@itsopi itsopi changed the title Copy/Paste does not create a link Copy/Paste from notepad does not create a link Sep 1, 2020
@Mgsy
Copy link
Member

Mgsy commented Sep 1, 2020

Hi, did you see our Autolink feature?

@Mgsy Mgsy added the pending:feedback This issue is blocked by necessary feedback. label Sep 1, 2020
@itsopi
Copy link
Author

itsopi commented Sep 1, 2020

Autolink does not solve this scenario. I can reproduce it even in the examples.

@jodator
Copy link
Contributor

jodator commented Sep 2, 2020

@hpivanov To be on the same page. The default behaviour is such:

  1. paste link
  2. press space
  3. autolink

as below (pasting alone will not trigger this):

Or there's a problem with Windows + Notepad + paste in CKEditor 5 + space scenario?

@itsopi
Copy link
Author

itsopi commented Sep 2, 2020

@jodator Autolink works as expected when I press 'Space'. My expectations are that by making Ctrl + V (paste), autolink will execute, and convert the text to a link. Is this possible?

@jodator
Copy link
Contributor

jodator commented Sep 2, 2020

My expectations are that by making Ctrl + V (paste), autolink will execute, and convert the text to a link. Is this possible?

For now we don't have this in mind AFAIR. It is doable of course.

If you don't mind I'll make your issue as a feature request to make that clear.

@jodator jodator added type:feature This issue reports a feature request (an idea for a new functionality or a missing option). package:link and removed pending:feedback This issue is blocked by necessary feedback. type:bug This issue reports a buggy (incorrect) behavior. labels Sep 2, 2020
@jodator jodator changed the title Copy/Paste from notepad does not create a link AutoLink should work on pasting plain-text URL from clipboard Sep 2, 2020
@oleq
Copy link
Member

oleq commented Sep 2, 2020

More or less a duplicate of #6629. Also related to #5656.

@jodator
Copy link
Contributor

jodator commented Sep 2, 2020

More or less a duplicate of #6629.

A bit, but here we don't have HTML in data transfer. As I get this pasting http://ckeditor.com from text-editor (eg Notepad).

@jodator jodator added domain:ui/ux This issue reports a problem related to UI or UX. squad:core Issue to be handled by the Core team. labels Sep 2, 2020
@Mgsy Mgsy added this to the nice-to-have milestone Sep 14, 2020
@lslowikowska lslowikowska added the support:2 An issue reported by a commercially licensed client. label Jan 21, 2021
@wojtekidd
Copy link
Contributor

wojtekidd commented Apr 6, 2021

I would consider this feature a very-nice-to-have - it's currently implemented in both Slack and Atlassian tools.

Edit: works in Confluence tables and NOT in Confluence articles. Haven't checked in Jira.

@benediktarnold
Copy link

Another good reason to have this implemented sooner:
Currently the behaviour is inconsistent with media embed .
Media embed automatically evaluates a pasted link and embedds the video if it is a YT or Vimeo link whereas any other link requires a 'Space' or 'Enter' after pasting before it gets detected.

@asimkt
Copy link
Contributor

asimkt commented Oct 28, 2021

I would like to add this feature if somebody can guide me on which file should be changing? Or is there a simpler way where I can create a plugin which does only this? @jodator

@pomek pomek removed this from the nice-to-have milestone Feb 21, 2022
@Boniqx
Copy link

Boniqx commented Feb 23, 2022

Hi guys! Great work on ckeditor! Just curious if this feature is already available. Thanks a lot

@ayush20892
Copy link

Is this feature available with CKEditor, or Autolink just work with space and enter.

@MoritzLost
Copy link

+1 for the ability to automatically create links from URLs when copy/pasting content. Another use-case: Sometimes you need to paste text that includes a bunch of links or e-mail-addresses. Those don't get converted on paste, so you have to manually convert them, or search them all in the text and press space after each one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:ui/ux This issue reports a problem related to UI or UX. package:link squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests