• 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://www.ads-software.com/plugins/pg-context-sidebar/

Viewing 1 replies (of 1 total)
  • Thread Starter David Innes

    (@david-innes)

    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.