Quote from
Asgaros on February 6, 2019, 8:49 am
Hello @traceyh
Please add the following code to the end of your themes functions.php file to remove the fullscreen-button:
add_filter('teeny_mce_buttons', 'remove_fullscreen_button', 9999, 2);
add_filter('mce_buttons', 'remove_fullscreen_button', 9999, 2);
function remove_fullscreen_button($buttons, $editor_id) {
global $asgarosforum;
if ($asgarosforum->executePlugin && $editor_id === 'message') {
// Remove the read-more button.
$searchKey = array_search('fullscreen', $buttons);
if ($searchKey !== false) {
unset($buttons[$searchKey]);
}
}
return $buttons;
}
Hello @traceyh
Please add the following code to the end of your themes functions.php file to remove the fullscreen-button:
add_filter('teeny_mce_buttons', 'remove_fullscreen_button', 9999, 2);
add_filter('mce_buttons', 'remove_fullscreen_button', 9999, 2);
function remove_fullscreen_button($buttons, $editor_id) {
global $asgarosforum;
if ($asgarosforum->executePlugin && $editor_id === 'message') {
// Remove the read-more button.
$searchKey = array_search('fullscreen', $buttons);
if ($searchKey !== false) {
unset($buttons[$searchKey]);
}
}
return $buttons;
}
traceyh has reacted to this post.