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

TinyMCE Entities Patch

外掛說明

Important Note: The recent release of WordPress 2.6 has fixed the disappearing entities bug this plugin was designed to fix, so once you upgrade to WordPress 2.6 please discontinue using this plugin. I may release a new plugin that prevents spaces from being stripped from the beginning of lines sometime in the near future.

After a few weeks of writing posts on WordPress, I was getting very irritated when all the HTML entities I added to my examples kept being converted into characters — e.g. HTML entities like &gt; &lt; &quot; would convert to > < " — when I saved the post I was working on.

To make matters worse, all the spaces I was using to align my coding examples would disappear when switching between “HTML” mode and “Visual” mode, even if I used the &nbsp; entity.

So, I finally bit the bullet and wrote this little plugin to fix these problems. It does just two things:

  1. Allows you to enter HTML entities like &gt; &lt; &amp; etc. while in “Visual” mode and they will stay put, even after you save your post.
  2. Allows you to type extra spaces while in “Visual” mode (or &nbsp; in “HTML” mode) and they will stay put too, allowing you to correctly indent code samples, etc.

If you are writing blog posts with source code or HTML examples, you may find this little plugin helps you avoid a ton of aggravation.

Works with TinyMCE and the TinyMCE Advanced plugin.

Please note, this plugin is a patch for issues with WordPress’s uses of TinyMCE, and not the editor itself.

If you try this plugin and like what you see, or you have questions or problems, feel free to email me at mike@englishmike.net or visit the TinyMCE Entities Patch Plugin Home Page with your feedback.

(Not tested on any version of WordPress older than 2.5.1. It may work on earlier versions, but I just don’t know for sure. Try it and see. If it doesn’t work simply deactivate the plugin. If it does work, please let me know!!)

Release Notes version 1.0

Changes in version 1.0

  • This is the initial version of the plugin.

安裝方式

Installation Instructions:

  1. Download the plugin zip file.
  2. Upload the plugin contents into your WordPress installation’s plugin directory.
  3. The plugin’s .php file and readme.txt should be installed in the ‘wp-content/plugins/tinymce-entities-patch/’ directory.
  4. From the Plugin Management page, activate the TinyMCE Entities Patch plugin.

Getting Started:

常見問題集

Where’s the administration panel for this plugin?

There isn’t one. Your only options are to activate or deactivate the plugin from the Plugin Management panel.

Does the plugin prevent extra blank lines from being removed from my posts?

No, this is a fix for disappearing space characters and HTML entites (tags beginning with & and ending with ;) only.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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