I added an quicktag for my wordpress 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 the button only show in Wordpress editor, not in bbpress's reply form. Is there a way to make the quicktag show there too?