I have a post on my frontpage and I want to add the TinyMCE editor to it and could not make it work.
I’ve tried these guides without any luck
- https://stackoverflow.com/questions/2855890/add-tinymce-to-wordpress-plugin
- http://keighl.com/2010/01/tinymce-in-wordpress-plugins/
The guides are for making it work on backend.
I guess I need to find out how to do these things…
- Add some Javascript with wp_enqueue_script.
- Add some inline Javascript settings within script-tags.
- Add a textarea or a div with a specific name, class or ID.
Help me in any way, code, links to guides, advice, anything.
What you’re looking for is two things:
wp_tiny_mce
function that loads all the needed JS etcThis to setup the JS etc:
And this HTML where you need the editor box: