Try our conversational search powered by Generative AI!

Should be able to modify MergedConfigurationProperties in TinyMceOptions

Fixed in

EPiServer.CMS.TinyMce 1.1.0

(Or a related package)

Created

Feb 28, 2018

Updated

Mar 15, 2018

Area

CMS UI

State

Closed, Fixed and tested


Description

In CMS 11, the MergedConfigurationProperties is an IEnumerable, meaning that it is not possible to add additional properties to this collection. It should be possible to configure this collection as was the case in CMS 10.

The IEnumerable should be changed to IList. It won't be possible to override properties, but it will be possible to add and remove items.

context.Services.Configure<EPiServer.Cms.TinyMce.Core.TinyMceOptions>(config =>
{
    config.MergedConfigurationProperties.Remove("invalid_elements");
    config.MergedConfigurationProperties.RemoveAt(2);
    config.MergedConfigurationProperties.RemoveAt("test");
}