This was way simpler than I thought it was – even on post.php
, you need to run wp_enqueue_editor()
before using wp.editor
in JavaScript. I had assumed that I wouldn’t need to do that, because an editor was already loaded.
This was way simpler than I thought it was – even on post.php
, you need to run wp_enqueue_editor()
before using wp.editor
in JavaScript. I had assumed that I wouldn’t need to do that, because an editor was already loaded.