Configure the default editor wrapper
Describes how to configure the editor wrapper in Optimizely Content Management System (CMS). The default wrapper is floating, however you can also change this to use the flyout wrapper.
The default floating editor displays beside its property and takes only the space it needs. Switch to a different wrapper type when properties need more editing space or a consistent side-panel layout.
Configure the default editor wrapper at initialization time, before CMS displays the UI. Use InitializableModule to set the DefaultEditorWrapper property on the CmsUIDefaults singleton, as in the following example:
using EPiServer.Cms.Shell;
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.Shell;
namespace MyProject.Business.Initialization
{
[InitializableModule]
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))]
public class UIDefaultsInitialization : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
// The supported default editor wrapper types are flyout and floating.
context.Services.GetRequiredService<CmsUIDefaults>().DefaultEditorWrapper = UiWrapperType.Flyout;
}
public void Uninitialize(InitializationEngine context) {}
}
}Updated 17 days ago
