Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hello
This post talks about something similar: https://surjitbharath.wordpress.com/2017/02/02/episerver-10-restrict-any-block-types-on-xhtmlstring-property-using-the-validation-attribute/
David
Not sure if this is working, but might do.
[UIDescriptorRegistration] public class DisableBlocksDnD : UIDescriptor<BlockData>, IEditorDropBehavior { public DisableBlocksDnD() { this.EditorDropBehaviour = EditorDropBehavior.CreateContentBlock; } public EditorDropBehavior EditorDropBehaviour { get; set; } }
Hi all,
We would like to avoid the drag and drop of all blocks created by the Editors into the TinyMCE because most of the time the break the styles. I already tried with the "AllowedTypes" property but this only works in content areas.
How can I avoid this?
Thank you