Cody Fam
asked 8 years ago

Hi there,

I do not wish users to use the text formatting to enhance the display of their replies. I preferred users to use standard un-formatted text when they reply to questions.

1) How can I disable the text formatting feature for users who are replying to questions?

2) If it is not possible to disable the entire text formatting feature, can I disable the buttons that allow hyperlinks to other pages?

1 Answers
answered 8 years ago

You can add the following code to the functions.php file of your theme:

add_filter( 'dwqa_tinymce_toolbar1', 'dwqa_disable_tinymce_options' );

function dwqa_disable_tinymce_options( $button ) {

if ( current_user_can('manage_options') )

{ return 'image,code,|,'.'spellchecker,fullscreen,dwqaCodeEmbed,|,';

} else {

 return 'spellchecker';

Powered by DW Question & Answer Pro