Title: Add Visual Editor functionality?
Last modified: August 22, 2016

---

# Add Visual Editor functionality?

 *  [David Innes](https://wordpress.org/support/users/david-innes/)
 * (@david-innes)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/add-visual-editor-functionality/)
 * This is a really cool feature, no doubt about it. Only fly in the ointment for
   me is I can’t figure out how to enable the Visual Editor for the Content Sidebar
   box? I’m pretty sure it’s just a matter of adding wp_editor() but… not savvy 
   enough with the codex to pull it off. Would be safer and more persistent through
   updates if you could do it too.
 * Thanks!
 * [https://wordpress.org/plugins/pg-context-sidebar/](https://wordpress.org/plugins/pg-context-sidebar/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [David Innes](https://wordpress.org/support/users/david-innes/)
 * (@david-innes)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/add-visual-editor-functionality/#post-5623967)
 * Haven’t heard anything back, but I have found a one-line workaround that seems
   to work just fine. There’s no way to hook the function so the adjustment must
   be made in the plugin itself.
 * Around line 189 in the file pg-context-sidebar.php find the text
 * `<td><textarea id="pgeek-cs-content" name='pgeek_cs_content' rows=8 cols=90 >
   <?php echo esc_attr($content * ); ? ></textarea>`
 * And replace it with
 * `<td><?php $my_settings = array('textarea_name' => 'pgeek_cs_content'); wp_editor(
   $content, 'pgeek_cs_content', $my_settings ); ?>`
 * Of course if the plugin is updated you have to reapply the fix. (Unless the fix
   were in the update itself.)

Viewing 1 replies (of 1 total)

The topic ‘Add Visual Editor functionality?’ is closed to new replies.

 * ![](https://ps.w.org/pg-context-sidebar/assets/icon-128x128.png?rev=1461545)
 * [PG Context Sidebar](https://wordpress.org/plugins/pg-context-sidebar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pg-context-sidebar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pg-context-sidebar/)
 * [Active Topics](https://wordpress.org/support/plugin/pg-context-sidebar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pg-context-sidebar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pg-context-sidebar/reviews/)

## Tags

 * [textarea](https://wordpress.org/support/topic-tag/textarea/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 1 reply
 * 1 participant
 * Last reply from: [David Innes](https://wordpress.org/support/users/david-innes/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/add-visual-editor-functionality/#post-5623967)
 * Status: not resolved