Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
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