Skip to content

Commit 704aebe

Browse files
enkelmedianul800sebastiaan
authored andcommitted
Fixes #15512 to allow curly braces in anchors
1 parent cceabf8 commit 704aebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
11841184
if (currentTarget.url.indexOf("localLink:") > 0) {
11851185
// if the current link has an anchor, it needs to be considered when getting the udi/id
11861186
// if an anchor exists, reduce the substring max by its length plus two to offset the removed prefix and trailing curly brace
1187-
var linkId = currentTarget.url.substring(currentTarget.url.indexOf(":") + 1, currentTarget.url.lastIndexOf("}"));
1187+
var linkId = currentTarget.url.substring(currentTarget.url.indexOf(":") + 1, currentTarget.url.indexOf("}"));
11881188

11891189
//we need to check if this is an INT or a UDI
11901190
var parsedIntId = parseInt(linkId, 10);

0 commit comments

Comments
 (0)