How would I include a WYSIWYG editor on the admin settings page as opposed to a standard text area?
Thanks.
How would I include a WYSIWYG editor on the admin settings page as opposed to a standard text area?
Thanks.
You must be logged in to post a comment.
is deprecated.
Use instead:
More info here.
To include this in your Admin Settings page all you need to do is replace the input or textarea with the wp_editor() code. Example:
If you are using a class to output a custom Admin Settings page. The form field would be output like this:
Replace the function above with the following:
You can find info on using a class to create options pages here: http://codex.wordpress.org/Creating_Options_Pages
This is super old and possibly this function did not exist when this was posted. That said, just use this: