Try our conversational search powered by Generative AI!

EditorDescriptorRegistration not triggered

Vote:
 

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
            }            
        }
}
#222901
Edited, May 13, 2020 12:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.