Skip to content

Allow file: and other useful URI schemes as links #8248

@zadam

Description

@zadam

📝 Provide a description of the improvement

Hi, I would like to be able to create links to local files on my own computer. I tried to create a link using standard CTRL-K dialog and entering e.g. file:///home/zadam/hello.txt but I end up with:

This seems to be caused by strict validation of inserted links in ckeditor5-link/src/utils.js:ensureSafeUrl, specifically the SAFE_URL regex.

Perhaps there are other URI schemes which might be worth whitelisting - e.g. jabber, xmpp, magnet, sftp (different from already whitelisted ftps), skype, ssh, git, svn ...


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:linkresolution:duplicateThis issue is a duplicate of another issue and was merged into it.squad:coreIssue to be handled by the Core team.type:featureThis issue reports a feature request (an idea for a new functionality or a missing option).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions