该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Save with keyboard

描述

This plugin lets you save your posts, pages, theme and plugin files, widgets, menus, etc. in the most natural way: pressing Ctrl+S (or Cmd+S on Mac).

I’ve coded this plugin because I was tired of pressing Cmd+S and then realize Chrome was trying to save the whole webpage

After coding this up, I’ve found in the plugin directory two plugins that did the same thing, but each one had some flaws that convinced me to publish mine.

This plugin loads a small Javascript file (minified if not WP_DEBUG). The Javascript checks the contents of any admin page for save buttons.

It is also so smart that saves as draft unpublished posts/pages and updates the ones that are already public.

Also adds a little tooltip on the buttons that can be “clicked” with Ctrl+S or Cmd+S.

安装

  1. Upload the folder save-with-keyboard to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

Is it really so simple to install and use?

You can bet it is.

Where can I use the shortcut?

Almost everywhere!
If it’s not a post, page, widget, menu or link the plugin checks for the #submit selector (used, for instance, in theme, plugin and profile).

评价

2018年3月6日
Updates posts/pages great but after save the page auto scrolls to the foot of the first (main) text editor field. But I have long pages with multiple text editor areas created with 'Advanced Custom Fields' plugin. Downloaded this hoping to avoid scrolling up to 'Update' button and scrolling down again on these long multi input pages. The plugin does the scroll up and click BUT page then auto scrolls to first text editor field (default wp behaviour? i don't see it in js), so I lose my place on the admin screen. Thanks, but works 50% for me on long pages.
阅读所有28条评价

贡献者及开发者

“Save with keyboard” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Save with keyboard”插件已被翻译至6种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Save with keyboard”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

3.0.2

Fixed loading of minified script.

3.0.1

Fixed localization support for old WP versions.
Fixed saving inside TinyMCE editor.

3.0

Added support for saving menus.
Rebuilt tooltip insertion with support for localization.
Tested up to WP 5.0 with Gutenberg (which doesn’t use the plugin ’cause it already handles this shortcut).