Wei Zhou
asked 7 years ago

How do I customise the toolbar above the text box (i.e. Bold, Italic, Underline, Bulleted list, etc.)?
I want to:

  1. Remove a couple of buttons (Block quote, Insert code)
  2. Re-order some of the buttons


1 Answers
answered 7 years ago

You can use the add_filter to dwqa_tinymce_toolbar1 (This filter is only available since DWQA 1.3.6). Please open functions.php file in the child-theme folder then add the following code:

add_filter( 'dwqa_tinymce_toolbar1', 'dwqa_disable_tinymce_options' );
function dwqa_disable_tinymce_options( $button ) {
       return 'bold,italic,underline,|,'.'bullist,numlist,blockquote,|,'.'image,code,|,'.'spellchecker,fullscreen,dwqaCodeEmbed,|,';

View more in /plugins/dw-question-answer/inc/Editor.php line 56.

Powered by DW Question & Answer Pro