這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

TinyMCE Code Formatting

外掛說明

The Pre button toggles the preformatted style on the selected text or the current line (applies <pre> tag to blocks).
The Code button toggles the code style on the selected text or the current word (applies <code> tag to inline elements).

The default shortcuts for the buttons are:

  • Ctrl+Q – Pre
  • Ctrl+D – Code

In the admin Settings submenu it’s possible to change these shortcuts.
Press a key combination in the text fields with the Ctrl key included and the text will be filled automatically. Or you can type it manually.

Some combinations may conflict with the default editor or browser shortcuts.
So check them on your instance.

You may use these types of shortcuts:

  • Ctrl+B, .., Z (except AXCV)
  • Ctrl+0, .., 9
  • Ctrl+[symbols] (-=`[];'\/,.)
  • Ctrl+F1, .., F12
  • Ctrl+Pad0, .., Pad9
  • Ctrl+Pad/, Pad*, Pad+, Pad.
  • Ctrl+Shift+...
  • Ctrl+Alt+...
  • Ctrl+Shift+Alt+...

This plugin GitHub repository: https://github.com/mortalis13/tinymce-code-formatting.

螢幕擷圖

  • The buttons in the default TinyMCE editor.
  • The buttons with the TinyMCE Advanced plugin activated.
  • Plugin options page allows to select custom shortcuts.

安裝方式

  1. Upload tinymce-pre-button folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

使用者評論

閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈TinyMCE Code Formatting〉的開發相關工作。

參與者

將〈TinyMCE Code Formatting〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄