Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) C:\Users\DMZ\Desktop\cumbreclima\wp-includes\js\tinymce\plugins\wpfullscreen\ drwxrwxrwx |
Viewing file: plugin.js (1.95 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /* global tinymce */ /** * WP Fullscreen (Distraction-Free Writing) TinyMCE plugin */ tinymce.PluginManager.add( 'wpfullscreen', function( editor ) { var settings = editor.settings; function fullscreenOn() { settings.wp_fullscreen = true; editor.dom.addClass( editor.getDoc().documentElement, 'wp-fullscreen' ); // Start auto-resizing editor.execCommand( 'wpAutoResizeOn' ); } function fullscreenOff() { settings.wp_fullscreen = false; editor.dom.removeClass( editor.getDoc().documentElement, 'wp-fullscreen' ); // Stop auto-resizing editor.execCommand( 'wpAutoResizeOff' ); } // For use from outside the editor. editor.addCommand( 'wpFullScreenOn', fullscreenOn ); editor.addCommand( 'wpFullScreenOff', fullscreenOff ); function getExtAPI() { return ( typeof wp !== 'undefined' && wp.editor && wp.editor.fullscreen ); } // Toggle DFW mode. For use from inside the editor. function toggleFullscreen() { var fullscreen = getExtAPI(); if ( fullscreen ) { if ( editor.getParam('wp_fullscreen') ) { fullscreen.off(); } else { fullscreen.on(); } } } editor.addCommand( 'wpFullScreen', toggleFullscreen ); editor.on( 'keydown', function( event ) { var fullscreen; // Turn fullscreen off when Esc is pressed. if ( event.keyCode === 27 && ( fullscreen = getExtAPI() ) && fullscreen.settings.visible ) { fullscreen.off(); } }); editor.on( 'init', function() { // Set the editor when initializing from whitin DFW if ( editor.getParam('wp_fullscreen') ) { fullscreenOn(); } }); // Register buttons editor.addButton( 'wp_fullscreen', { tooltip: 'Distraction-free writing mode', shortcut: 'Alt+Shift+W', onclick: toggleFullscreen, classes: 'wp-fullscreen btn widget' // This overwrites all classes on the container! }); editor.addMenuItem( 'wp_fullscreen', { text: 'Distraction-free writing mode', icon: 'wp_fullscreen', shortcut: 'Alt+Shift+W', context: 'view', onclick: toggleFullscreen }); }); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |