Skip to content

Implement fast keystroke auto linking of link–like text content in editable #4722

Closed as not planned
@oleq

Description

@oleq

A followup of https://github.com/ckeditor/ckeditor5-link/issues/2#issuecomment-240374891.

Automated and "on keystroke" linking pasted and typed URLs. E.g. if you paste a URL, then it can be safely autolinked. But if you paste a lot of content or you typed that URL in some specific way and it wasn't autolinked, just press CTRL+K having selection in the URL text and that URL should be converted into a link.


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.

image

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.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:ui/uxThis issue reports a problem related to UI or UX.package:linkresolution:expiredThis issue was closed due to lack of feedback.status:discussiontype:featureThis issue reports a feature request (an idea for a new functionality or a missing option).type:questionThis issue asks a question (how to...).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions