Gator Gate Pre

Description

Gator Gate Pre for bbPress adds reliable Visual Editor <pre> support to front-end bbPress topic and reply forms on a per-forum basis.

On each forum’s edit screen (Attributes metabox) you will find three checkboxes:

  • Enable Visual Editor — forces the visual editor on topic and reply forms for that forum.
  • Hide the Code tab — available only when the visual editor is enabled (UI convenience only).
  • Change line spacing — available only when the visual editor is enabled. Applies tighter line-height and paragraph/heading margins in the visual editor and on the front end of saved posts.

The Pre button and paste panel appear by default whenever the visual editor is enabled.

Other plugins (or a theme’s functions.php file) can control the Pre button with the gg_pre_show_pre_button filter:

// Hide the Pre button everywhere
add_filter( ‘gator_gate_pre_show_pre_button’, ‘__return_false’ );

// Force the Pre button on everywhere
add_filter( ‘gator_gate_pre_show_pre_button’, ‘__return_true’ );

// Target a specific forum ID
add_filter( ‘gator_gate_pre_show_pre_button’, function( $show, $forum_id ) {
if ( 123 === (int) $forum_id ) {
return false; // hide on forum 123
}
return $show;
}, 10, 2 );

Project Info

100% free plugin under the GPL license.

Screenshots

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Gator Gate Pre” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Gator Gate Pre” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.