How do I customise the toolbar above the text box (i.e. Bold, Italic, Underline, Bulleted list, etc.)?
I want to:
- Remove a couple of buttons (Block quote, Insert code)
- Re-order some of the buttons
Thanks
Wei
1 Answers
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.
Please login or Register to submit your answer