TinyMCE and Blocks

AB
AB
Vote:
 

Hi all,

We currently have a TinyMCE property on a page. 

The editor is able to drag blocks into the editor, which is fine. 

However, the only concern here is that the editor is able to drag any block into the editor. What if we have a block that we dont want the editor to use within TinyMCE?

Has anyone come up against this before? Is there a way to restrict certain blocks being used in TinyMCE?

Thanks in advance,

Adam

#90798
Sep 18, 2014 10:00
Vote:
 
#90799
Sep 18, 2014 10:56
AB
Vote:
 

Hi Linus,

Thank you for your response.

Have you a more detailed code sample to follow on this?

Thanks

Adam

#90883
Sep 19, 2014 18:41
Vote:
 
[UIDescriptorRegistration]
    public class SitePageUIDescriptor : UIDescriptor, IEditorDropBehavior
    {
        public SitePageUIDescriptor()
        {
            EditorDropBehaviour = EditorDropBehavior.Undefined;
        }
 
        public EditorDropBehavior EditorDropBehaviour { get; set; }
    }
#90885
Edited, Sep 19, 2014 22:50