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:
azaozz 2009-02-08 18:37:47 +00:00
parent d3932e2388
commit 552b480eb2
6 changed files with 5 additions and 4 deletions

View File

@ -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";

View File

@ -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

View File

@ -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' );