-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
type:bugThis issue reports a buggy (incorrect) behavior.This issue reports a buggy (incorrect) behavior.
Description
π Provide detailed reproduction steps (if any)
- Enter a phone number into CKEditor
- Select the phone number
- Add a hyperlink
βοΈ Expected result
The hyperlink should show 'tel:1234567890'
β Actual result
The hyperlink shows 'https://' instead of 'tel:'
β Possible solution
Change the CKEditor regex to recognise a telephone number hyperlink
π Other details
- Browser: Chrome
- OS: Windows 10 Enterprise
- CKEditor 5
Code:
ClassicEditor
.create(input[0], {
plugins: [ClassicEditor, Essentials, Paragraph, Image, ImageUpload, ImageResizeEditing, ImageResizeHandles, HtmlEmbed, Link],
extraPlugins: editorExtraPlugins,
toolbar: toolbar,
link: {
defaultProtocol: 'https://',
decorators: {
allowedProtocols: ['https?', 'tel', 'sms', 'mailto'],
safeUrlProtocols: 'https?|ftps?|mailto|tel',
toggleDownloadable: {
mode: 'manual',
label: 'Downloadable',
attributes: {
download: 'file'
}
},
openInNewTab: {
mode: 'manual',
label: 'Open in a new tab',
attributes: {
target: '_blank',
rel: 'noopener noreferrer'
}
}
}
}
})
If you'd like to see this fixed sooner, add a π reaction to this post.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:bugThis issue reports a buggy (incorrect) behavior.This issue reports a buggy (incorrect) behavior.