It looks like Umbraco prefixes http:// when no scheme is entered and this is done in the old Angular code for TinyMCE under Umbraco 13. The link_default_protocol option in TinyMCE is not used as Umbraco does not use the native TinyMCE link modal.
You will either need to replace the Angular code that does this or write a ContentSavingNotificationHandler that updates the URLs when the content is saved server side.
The AI suggestion is to create your own Angular service:
angular.module("umbraco.services").config([
"$provide",
function ($provide) {
$provide.decorator("tinyMceService", [
"$delegate",
function ($delegate) {
var original = $delegate.insertLinkInEditor;
$delegate.insertLinkInEditor = function (editor, target, anchorElm) {
if (target && target.url && typeof target.url === "string") {
var url = target.url;
var isAbsolute = /^[a-z][a-z0-9+\-.]*:\/\//i.test(url);
var isRelative = url.startsWith("/") || url.startsWith("#")
|| url.startsWith("mailto:") || url.startsWith("tel:");
if (!isAbsolute && !isRelative) {
target.url = "https://" + url;
}
}
return original.apply(this, arguments);
};
return $delegate;
}
]);
}
]);
and register it in your package.manifest file.
{
"javascript": [
"~/App_Plugins/YourPackage/yourplugin.js"
]
}
I’ve not tested this though.
Justin