Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.