For the link editor in TinyMCE, when getting the anchor widget, there is a method:
getAnchorWidget = function (widgetList) {
return array.filter(widgetList, function (wrapper) {
return "Anchor" == wrapper.name;
});
}
When I added the same to get the Page widget:
getPageWidget = function (widgetList) {
return array.filter(widgetList, function (wrapper) {
return "Page" == wrapper.name;
});
};
the code doesn't work in languages other than English. Now, I can add || wrapper.name == "Sida" as a workaround for this site, since all the editors use Swedish. However, this appears to be a bug, since when I debug the dojo code, for each widget in widgetList, I get an English name for wrapper.name and a localized name for wrapper.displayName.
In dotPeek, in LinkEditorDescriptor I do see this part, so I guess that is the reason:
For the link editor in TinyMCE, when getting the anchor widget, there is a method:
When I added the same to get the Page widget:
the code doesn't work in languages other than English. Now, I can add || wrapper.name == "Sida" as a workaround for this site, since all the editors use Swedish. However, this appears to be a bug, since when I debug the dojo code, for each widget in widgetList, I get an English name for wrapper.name and a localized name for wrapper.displayName.
In dotPeek, in LinkEditorDescriptor I do see this part, so I guess that is the reason:
But isn't this a bug, shouldn't DisplayName be r.CustomSelectTitle ?? r.Name, and