How do you add a WYSIWYG editor to a custom form which you create through a block? I have found this article for doing this through UI components but need this for a block.
I've tried the following:
$fieldset->addField(
'content',
'editor',
[
'name' => 'content',
'label' => __('Body'),
'title' => __('Body'),
'rows' => '5',
'cols' => '30',
'wysiwyg' => true,
'required' => true
]
);