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 try to add Editor to Text Widget by using wp_editor()

But i get a javascript error switchEditors is not defined.

Could you let me know the javascript file need to load

wp_enqueue_media(); 
wp_editor('content', 'text-id');
share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.