Please or Register to create posts and topics.

Turn off Fullscreen option

Is there anyway to turn off the Fullscreen option?

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.
traceyh
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thank you!