AI OnAI Off
Hi Flemming,
You can override the default behavior by below custom code.
define([
"dojo/_base/declare",
"epi/shell/layout/SimpleContainer"
],
function (
declare,
SimpleContainer
)
{
return declare([SimpleContainer], {
//constructor: function () {},
postCreate: function () { /* PostCreate fires too soon, and the tab strip is not completely rendered */ },
startup: function () {
// Use Jquery to select the tab we manually want to change to, and click it:
var tabElement = $("div.dijitContentPane span.tabLabel:contains('Additional content')");
if ($(tabElement).length) {
$(tabElement).trigger("click");
}
}
});
}
More information is available here
You'll still have to figure out what tab was selected right before the page gets published...
Hi everyone,
Whenever an editor publishes a change in EPiServer CMS / Commerce, their tab is automatically switched to the leftmost tab.
This is causing a slight annoyance for our editors.
The wanted behavior is that it sticks to the tab the editor was already viewing as soon as they press Publish.
I've searched the forum and the documentation for how to change this behavior but without any luck, and I was hoping someone here could help me out.