Adds TODO, removes the data-udi or data-id attribute from inserted links

This commit is contained in:
Shannon
2019-05-07 15:47:40 +10:00
parent 0e636b4ce1
commit 2e7aa11211

View File

@@ -431,6 +431,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
} else {
//Considering these fixed because UDI will now be used and thus
// we have no need for rel http://issues.umbraco.org/issue/U4-6228, http://issues.umbraco.org/issue/U4-6595
//TODO: Kill rel attribute
data["rel"] = img.id;
data["data-id"] = img.id;
}
@@ -964,12 +965,6 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
rel: target.rel ? target.rel : null
};
if (hasUdi) {
a["data-udi"] = target.udi;
} else if (target.id) {
a["data-id"] = target.id;
}
if (target.anchor) {
a["data-anchor"] = target.anchor;
a.href = a.href + target.anchor;