Adds TODO, removes the data-udi or data-id attribute from inserted links
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user