I have an editor on the front end of a website using wp_editor. It mostly works as expected; very similar to the admin side editor. However, when I enter an audio or video link, the players are not rendered as they are on the admin side. For example, inputting:-
http://chromafunk.com/bucket/ring.mp3
...on the admin side will immediately render to the audio player. On my public side wp_editor, it remains as a URL string.
There are obviously some filters/scripts on the admin side that render these URLs that are not available as standard from the public facing side. Is it possible to get a public side wp_editor to behave exactly like the admin side editor? Its kind of pointless having front end editing if I lose a chunk of functionality from the admin side editor.
Im using my own custom plugin to launch the editor. Im using the following:-
function create_tinymce() {
$settings = array(
'media_buttons' => true,
'drag_drop_upload' => false,
'wpautop' => true,
);
wp_editor("", "my-editor", $settings);
}
Im then hooking the above function using:-
add_action( 'wp_head', 'create_tinymce', 0 );