Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add QuickTags to bbpress editor??

  • @vpontin

    Participant

    Hi all!
    Its a pretty noob question, but i didn’t find anything related to my issue…

    I added a quicktag to the wordpress default editor


    function generico_quicktags() {

    if ( wp_script_is( 'quicktags' ) ) {
    ?>
    <script type="text/javascript">
    QTags.addButton(
    'pov_generico',
    'POV (Genérico)',
    '[pov-generico]',
    '[/pov-generico]'
    );
    QTags.addButton( 'pov_generico', 'p', '<p class="fala generico">', '</p>', '', 'Fala (Personagem Genérico)', 10 );
    </script>
    <?php
    }

    }
    add_action( 'admin_print_footer_scripts', 'generico_quicktags' );

    But this don’t show in bbpress reply editor. How can i add this there too?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @vpontin

    Participant

    SOLVED
    I just put another add_action and seems to work fine:
    add_action( 'wp_print_footer_scripts', 'generico_quicktags' );

    @robkk

    Moderator

    glad you solved your own issue.

    now im going to play with the quicktags editor!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar