mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Editor:
- Use standard button styles for the Quicktags buttons. - Better style for the TinyMCE buttons (hover/focus/active/disabled). - Move the fullscreen (DFW) button to the right. - Better style for the Visual/Text buttons in DFW. Props avryl, see #27279 git-svn-id: https://develop.svn.wordpress.org/trunk@27857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -57,6 +57,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||
cmd: 'WP_Adv',
|
||||
onPostRender: function() {
|
||||
wpAdvButton = this;
|
||||
wpAdvButton.active( getUserSetting( 'hidetb' ) === '1' ? true : false );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -91,7 +91,8 @@ tinymce.PluginManager.add( 'wpfullscreen', function( editor ) {
|
||||
editor.addButton( 'wp_fullscreen', {
|
||||
tooltip: 'Distraction Free Writing',
|
||||
shortcut: 'Alt+Shift+W',
|
||||
onclick: toggleFullscreen
|
||||
onclick: toggleFullscreen,
|
||||
classes: 'wp-fullscreen btn widget' // This overwrites all classes on the container!
|
||||
});
|
||||
|
||||
editor.addMenuItem( 'wp_fullscreen', {
|
||||
|
||||
Reference in New Issue
Block a user