Allow URLs with custom protocols to be linkable using Link plugin #14304
Labels
domain:integration-dx
This issue reports a problem with the developer experience when integrating CKEditor into a system.
intro
Good first ticket.
package:link
squad:collaboration
Issue to be handled by the Collaboration team.
support:2
An issue reported by a commercially licensed client.
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
馃摑 Provide a description of the improvement
The improvement I'd like to propose is adding the ability to customize which URL protocols the Link plugin considers safe so that URLs using them are properly linked in the Link Balloon and take the user to the intended destination upon clicking.
How the feature works now and what you'd like to change?
Currently, the Link Balloon relies a
SAFE_URL
regex to determine if a link, upon click, should take the user to the set URL, or to#
Because the list of "safe" protocols are baked into the
SAFE_URL
regex, URLs using uncommon protocols such astel
, cannot be linked.In order to address this, there could be an option added to the link configuration that might look something like this:
With this approach, the regex currently used to determine if a URL is safe might be replaced with a function that receives
safeUrlProtocols
to dynamically build and return a regex.馃搩 Other details
If you'd like to see this improvement implemented, add a 馃憤 reaction to this post.
The text was updated successfully, but these errors were encountered: