Skip to content

Commit b0aed39

Browse files
authored
fix: keep the lead char when editing an existing link (#17667)
1 parent a1ea203 commit b0aed39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,10 +1216,9 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
12161216
target: anchor.attr("target")
12171217
};
12181218

1219-
// drop the lead char from the anchor text, if it has a value
12201219
var anchorVal = anchor[0].dataset.anchor;
12211220
if (anchorVal) {
1222-
currentTarget.anchor = anchorVal.substring(1);
1221+
currentTarget.anchor = anchorVal;
12231222
}
12241223

12251224
//locallink detection, we do this here, to avoid poluting the editorService

0 commit comments

Comments
 (0)