TinyMCE Editor as component in Gutenberg Block

I’m trying to set up a custom block that uses a TinyMCE as the text editable component, rather than using RichEditor.

I can’t find anything that really details how to go about this and need pointing in the right direction. I can’t see anything in either the wp.editor or wp.components objects that would relate to the TinyMCE, so am guessing it needs importing somehow, but struggling to find how.

As an idea, int ehe edit function react, I would hope for something like this:

<RichText
    tagName="h2"
    placeholder={ 'Write title here…' ) }
    value={ title }
    onChange={ onChangeTitle }
/>
<TinyMCE
    // SETTINGS GO HERE
/>

Any information would be greatly appreciated.

0

Leave a Comment