Enabling features that are not available by default
All features that are not available by default can be enabled by running the query given in this document.
CKEditor is available by default. To enable the TinyMCE, make the following REST API
call:
https://hostname:8000/lobtools/cmc/Configure?featureName=ckeditor&featureEnabled=false
Where <hostname:8000> is the domain and port used to launch the Commerce LabNote: You can enable the TinyMCE by running the above query,
however it is only active until the browser session is closed. Once the browser
session is closed, TinyMCE is disabled enabling the CKEditor.
Problem
Features that are not available by default works with browser session only when enabled.
Solution
To enable features that are not available by default:
- Open the Configure.js file from the LOBTools.war/javascript/shell/Configure.js directory to change the defaults for a feature.
- Update and deploy the following code to enable
features:
var darkFeatures; function loadDarkFeatures() { darkFeatures = { "organizationManagement":false, "newCatalogManagement":true, "userManagement":false, "storePreview":true, "approvalManagement":false, "memberGroupManagement":false, "testMedalliaSurvey":true, "testTool":true, "localAdminConsole":true, "eSiteStoreManagement": false, "accountManagement": false, "scheduler": false, "registryManagement": false, "transportManagement": false, "messageTypeManagement": false, "messageManagement": false, "securityPolicyManagement": false, "shippingJurisdictionManagement": false, "shippingCodeManagement": false, "shippingModeManagement": false, "taxJurisdictionManagement": false, "taxCodeManagement": false, "taxCategoryManagement": false, "searchTool": false, "pageBuilder": false, "marketplace": false, "marketplaceSellerDashboard": false, "accountDashboard": true, "toolingInstrumentation": false, "toolingInstrumentationDebugMode": true, "orderLineMetricsTool": false, "advancedUserSearch": true, "userPasswordReset": false, "marketplaceContracts": false, "marketplaceSellerSelfRegistration": false, "ckeditor": true }; for (var i = 0; i < localStorage.length; i++) { var key = localStorage.key(i); if (key.indexOf("darkFeature.") == 0) { var featureName = key.substr("darkFeature.".length); var featureDisabled = localStorage.getItem(key) == "true"; darkFeatures[featureName] = featureDisabled; } } } function setDarkFeature(featureName, featureEnabled) { if (featureName != null && featureName != "") { localStorage.setItem("darkFeature."+featureName, featureEnabled != "true"); } } function resetDarkFeatures() { localStorage.clear(); }
Note: Setting a feature to
false enables the
feature.