Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

EditorDescriptorRegistration not triggered

$
0
0

CMS 11

Hello! Ive got a plugin out there with an EditorDescriptor, but it is not triggered in ONE implementation. What can it be?

yes there is other descriptors in solution with TargetType = typeof(XhtmlString) and they are triggered

 [EditorDescriptorRegistration(TargetType = typeof(XhtmlString), EditorDescriptorBehavior = EditorDescriptorBehavior.PlaceLast)]
public class XhtmlStringEditorDescriptor : EditorDescriptor
{
        public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata,
            IEnumerable<Attribute> attributes)
        {
            //no breakpoint triggered here
            if (metadata.EditorConfiguration["settings"] is Dictionary<string, object> settings)
            {
               //some code here but gets never hit
            }            
        }
}

Viewing all articles
Browse latest Browse all 9076

Trending Articles