~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-includes/js/tinymce/plugins/wpfullscreen/plugin.js

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* global tinymce */
2
2
/**
3
 
 * WP Fullscreen (Distraction Free Writing) TinyMCE plugin
 
3
 * WP Fullscreen (Distraction-Free Writing) TinyMCE plugin
4
4
 */
5
5
tinymce.PluginManager.add( 'wpfullscreen', function( editor ) {
6
6
        var settings = editor.settings;
56
56
                if ( editor.getParam('wp_fullscreen') ) {
57
57
                        fullscreenOn();
58
58
                }
59
 
 
60
 
                editor.addShortcut( 'alt+shift+w', '', 'wpFullScreen' );
61
59
        });
62
60
 
63
61
        // Register buttons
64
62
        editor.addButton( 'wp_fullscreen', {
65
 
                tooltip: 'Distraction Free Writing',
 
63
                tooltip: 'Distraction-free writing mode',
66
64
                shortcut: 'Alt+Shift+W',
67
65
                onclick: toggleFullscreen,
68
66
                classes: 'wp-fullscreen btn widget' // This overwrites all classes on the container!
69
67
        });
70
68
 
71
69
        editor.addMenuItem( 'wp_fullscreen', {
72
 
                text: 'Distraction Free Writing',
 
70
                text: 'Distraction-free writing mode',
73
71
                icon: 'wp_fullscreen',
74
72
                shortcut: 'Alt+Shift+W',
75
73
                context: 'view',