congree.loadSidebar = function (username, password) {
// loader code custom to host app
congree.sidebar = new Congree.Sidebar({
serverAddress: <host>/Congree,
authentication: {
userName: username ,
password: password ",
accessTokenURL: <host>/congreeidentityserver/connect/token,
loginType: "usernamePassword",
},
initialRuleSetName: "<RuleSet>",
// culture: "de-DE",
editors: [
Congree.AdapterFor.TextInput('.TextArea', 'para')
]
});
congree.sidebarOverlay = congree.sidebar.asOverlay({
overlayIconPosition: null,
overlaySize: { top: 0, bottom: 0 },
},
{
"autoHideSidebarOnEditorFocusLost": true,
"autoHideSidebarOnErrorsFixed": false,
"autoShowSidebarOnEditorError": true,
"autoShowSidebarOnEditorFocus": true,
"overlayPosition": 1,
"shouldShowTacheles": true
});
};
|