mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Autosave post/page when pressing Control/Command+S in TinyMCE, props srobbin, fixes #9060
git-svn-id: http://svn.automattic.com/wordpress/trunk@10528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d3932e2388
commit
552b480eb2
@ -1286,7 +1286,7 @@ function wp_tiny_mce( $teeny = false ) {
|
||||
'plugins' => "$plugins"
|
||||
);
|
||||
|
||||
$mce_css = apply_filters('mce_css', '');
|
||||
$mce_css = trim(apply_filters('mce_css', ''), ' ,');
|
||||
|
||||
if ( ! empty($mce_css) )
|
||||
$initArray['content_css'] = "$mce_css";
|
||||
|
@ -182,6 +182,7 @@
|
||||
ed.addShortcut('alt+shift+h', ed.getLang('help_desc'), 'WP_Help');
|
||||
ed.addShortcut('alt+shift+t', ed.getLang('wp_more_desc'), 'WP_More');
|
||||
ed.addShortcut('alt+shift+p', ed.getLang('wp_page_desc'), 'WP_Page');
|
||||
ed.addShortcut('ctrl+s', ed.getLang('save_desc'), function(){if('function'==typeof autosave)autosave();});
|
||||
|
||||
if ( tinymce.isWebKit ) {
|
||||
ed.addShortcut('alt+shift+b', ed.getLang('bold_desc'), 'Bold');
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -77,7 +77,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
// Modify this version when tinyMCE plugins are changed.
|
||||
function mce_version() {
|
||||
return '20090108';
|
||||
return '20090208';
|
||||
}
|
||||
add_filter( 'tiny_mce_version', 'mce_version' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user