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

Don't Break The Code

外掛說明

The idea for this plugin came from a presentation at WordCamp Philly
2011.

Code from these other plugins has served as reference and inspiration, and was sometimes borrowed from:

https://wordpress.org/extend/plugins/disable-visual-editor-wysiwyg/
https://wordpress.org/extend/plugins/raw-html/

Plans:

  • Hide the disable option from non-admins.
  • Possibly remove certain filters from the the_content filter, similar to the Raw HTML or Preserved HTML Editor Markup plugins.

安裝方式

  1. Upload the dont-break-the-code directory to the /wp-content/plugins/
    directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Look for the visual editor checkbox in the Screen Options of the edit
    post page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Don't Break The Code〉的開發相關工作。

參與者

將〈Don't Break The Code〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

.3.1

  • Still works. Just updated the readme.

.2.3

  • Fixed bug where strikethrough wasn’t being applied when toggling checkbox back and forth.

.2.2

  • Now only admins (current_user_can(“manage_options”)) can see/edit the disable visual editor checkbox.

.2.1

  • The checkbox wasn’t showing up on the Edit Page page. Now it is. May need to figure a way to make this work with custom post types.

.2

  • Moved the checkbox into the screen options space.
  • Updated the checkbox to switch disable/enable and switch tabs without requiring a save or update.

.1

  • Initial Version. Pulled code from “Disable the Visual Editor WYSIWYG” (https://wordpress.org/extend/plugins/disable-visual-editor-wysiwyg/) and rewrote a few parts pased on my preferences for doing jQuery and which hook to use to determine we’re on the edit post page.