Avoid Drag and Drop blocks in TinyMCE

Vote:
 

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

#175125
Feb 13, 2017 15:54
Vote:
 

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; }
}
#175130
Edited, Feb 13, 2017 17:26
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.