Reputation: 317
In one of my plugins I'm currently developing (TargetPop), I've embedded the TinyMCE editor so that the user can create contents for their Pop-Up, complete with both the 'Visual' and 'Text' views, and the ability to add media, style/formatting options, etc. See screenshot below.
My question is: How would I replicate this entire functionality with the upcoming Gutenberg Editor? I found tons of examples of how to create a new block for Gutenberg, but nothing really about embedding the entire Gutenberg editor somewhere else, like I've embedded the TinyMCE editor. I probably just missed this info somewhere... any ideas?
Upvotes: 1
Views: 823
Reputation: 217
If you're using a register_post_type() in your plugin, add
'show_in_rest' => true
to the arguments array of it and make sure 'editor' is in the supports array of the arguments array.
Upvotes: 1