I'm trying to create a front-end editor for my Wordpress theme using wp_editor.
While it outputs the editor, there's loads missing from it. There's no title, no submit button and none of the JS works, so you can't switch between tabs, upload media and the formatting buttons don't appear.
I know I'm missing something obvious and that it's probably a JS file I need to include, but I can't find a solution about it anywhere online and the codex page on the function doesn't mention JS at all.
What am I doing wrong? Have I fundamentally misunderstood this function?
Here's my (very simple) code:
<?php $settings = array( 'textarea_name' => 'post_text', 'tinymce'=>true ); wp_editor($content, $editor_id, $settings ); ?>