From b0aed393d67c1587a3412016ad309792e28a2da3 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:04:59 +0100 Subject: [PATCH] fix: keep the lead char when editing an existing link (#17667) --- .../src/common/services/tinymce.service.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js index 7ed6b9ee50..da1772d35d 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js @@ -1216,10 +1216,9 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s target: anchor.attr("target") }; - // drop the lead char from the anchor text, if it has a value var anchorVal = anchor[0].dataset.anchor; if (anchorVal) { - currentTarget.anchor = anchorVal.substring(1); + currentTarget.anchor = anchorVal; } //locallink detection, we do this here, to avoid poluting the editorService