Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Customising distraction-free toolbar icons
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon Blackbourn  
View profile  
 More options Oct 4 2011, 3:21 pm
From: Simon Blackbourn <piema...@gmail.com>
Date: Tue, 4 Oct 2011 20:21:47 +0100
Local: Tues, Oct 4 2011 3:21 pm
Subject: [wp-hackers] Customising distraction-free toolbar icons
I use the following code to customise which icons a client has available on
the TinyMCE toolbar:

add_filter( 'tiny_mce_before_init', array( $this, 'wysiwyg_defaults' ) );

function wysiwyg_defaults( $initArray ) {

        if ( ! current_user_can( 'use_wordpress_full_admin' ) ) {

            $initArray['theme_advanced_blockformats'] = 'p,h2,h3';

            $initArray['theme_advanced_buttons1'] =
'pastetext,|,|,formatselect,|,|,bold,italic,|,|,bullist,|,|,link,unlink,|,| ,spellchecker,|,|,fullscreen';
            $initArray['theme_advanced_buttons2'] = '';
            $initArray['theme_advanced_buttons3'] = '';

            $initArray['spellchecker_languages'] = 'English=en';

        }

        return $initArray;

}

Is there any way I can specify default icons for the distraction-free mode
too? (currently I'm using CSS to hide a couple of unwanted buttons.)

Thanks
Simon
_______________________________________________
wp-hackers mailing list
wp-hack...@lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Ozz  
View profile  
 More options Oct 6 2011, 11:35 am
From: Andrew Ozz <ad...@laptoptips.ca>
Date: Thu, 06 Oct 2011 08:35:45 -0700
Local: Thurs, Oct 6 2011 11:35 am
Subject: Re: [wp-hackers] Customising distraction-free toolbar icons
On 04/10/2011 12:21 PM, Simon Blackbourn wrote:

> Is there any way I can specify default icons for the distraction-free mode
> too? (currently I'm using CSS to hide a couple of unwanted buttons.)

Have a look at the 'wp_fullscreen_buttons' filter.
_______________________________________________
wp-hackers mailing list
wp-hack...@lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Blackbourn  
View profile  
 More options Oct 6 2011, 12:39 pm
From: Simon Blackbourn <piema...@gmail.com>
Date: Thu, 6 Oct 2011 17:39:07 +0100
Local: Thurs, Oct 6 2011 12:39 pm
Subject: Re: [wp-hackers] Customising distraction-free toolbar icons

> Is there any way I can specify default icons for the distraction-free mode
>> too? (currently I'm using CSS to hide a couple of unwanted buttons.)

> Have a look at the 'wp_fullscreen_buttons' filter.

that's great thanks.
_______________________________________________
wp-hackers mailing list
wp-hack...@lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »