Skip to content

Commit

Permalink
Add fullscreen button to wysiwyg toolbars
Browse files Browse the repository at this point in the history
  • Loading branch information
wonkeythemonkey authored Nov 25, 2019
1 parent f2be2a9 commit e272384
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions class-newcity-toolbars.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ function add_style_select_buttons( $buttons ) {
function my_toolbars( $toolbars ) {

$toolbars['Minimum'] = array();
$toolbars['Minimum'][1] = array( 'bold', 'italic', '|', 'removeformat' );
$toolbars['Minimum'][1] = array( 'bold', 'italic', '|', 'removeformat', '|', 'fullscreen' );

$toolbars['Minimum with Links'] = array();
$toolbars['Minimum with Links'][1] = array( 'bold', 'italic', 'link', 'unlink', '|', 'removeformat' );
$toolbars['Minimum with Links'][1] = array( 'bold', 'italic', 'link', 'unlink', '|', 'removeformat', '|', 'fullscreen' );

$toolbars['Minimum with Lists'] = array();
$toolbars['Minimum with Lists'][1] = array( 'bold', 'italic', 'link', 'unlink', '|', 'bullist', 'numlist', '|', 'removeformat' );
$toolbars['Minimum with Lists'][1] = array( 'bold', 'italic', 'link', 'unlink', '|', 'bullist', 'numlist', '|', 'removeformat', '|', 'fullscreen' );

$toolbars['Simple'] = array();
$toolbars['Simple'][1] = array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', $this->blockquote_name(), '|', 'removeformat' );
$toolbars['Simple'][1] = array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', $this->blockquote_name(), '|', 'removeformat', '|', 'fullscreen' );

$toolbars['Simple with Headers'] = array();
$toolbars['Simple with Headers'][1] = array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', 'formatselect', '|', 'removeformat' );
$toolbars['Simple with Headers'][1] = array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', 'formatselect', '|', 'removeformat', '|', 'fullscreen' );
if (get_option('newcity_wysiwyg_toolbar_format_dropdown')) {
array_splice($toolbars['Simple with Headers'][1], 6, 0, 'styleselect');
}
Expand All @@ -109,7 +109,7 @@ function my_toolbars( $toolbars ) {
}

public function default_mce_toolbar( $buttons ) {
$buttons = array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', 'formatselect', '|', 'removeformat' );
$buttons = array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', 'formatselect', '|', 'removeformat', '|', 'fullscreen' );
return $buttons;
}
public function extra_mce_toolbar( $buttons ) {
Expand Down

0 comments on commit e272384

Please sign in to comment.