WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got several custom widgets which are extended from WP_widget. Many of these have textarea fields. I'd like to be able to apply a special css class to certain of these textareas in order to convert them to rich text areas with a basic TinyMCE toolbar control.

How involved is this to do?

I'd like to implement a solution that inherits most or all of its code from the WP core and just piggyback off that.

share|improve this question
up vote 0 down vote accepted

use the function wp_editor() to your textarea. This is the best and easy way, also usable fast forward.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.