[WordPress] 外掛分享: TinyMCE Entities Patch

首頁外掛目錄 › TinyMCE Entities Patch
20+
安裝啟用
尚無評分
6455 天前
最後更新
問題解決
WordPress 2.5+ v1.0 上架:2008-07-07

內容簡介

重要提示:最近釋出的 WordPress 2.6 已修正此外掛程式旨在修復的實體消失問題,因此一旦升級到 WordPress 2.6 後,請停止使用此外掛程式。未來可能會推出一款新外掛程式,以防止空格從行首被剝離。

在 WordPress 上撰寫幾週的文章後,我非常煩惱加入到範例中的所有 HTML 實體都會轉換成字符 — 例如,像 &gt; &lt; &quot; 之類的 HTML 實體將會轉換成 > < " — 當我儲存正在編輯的文章時。

更糟的是,所有我用來對齊我的編碼範例的空格會在從「HTML」模式和「可視化」模式之間切換時消失,即使我使用 &nbsp; 實體也是如此。

因此,我最終咬了咬牙,撰寫了這個小型的外掛程式來解決這些問題。它只會做兩件事:

允許您在「可視化」模式下輸入 HTML 實體,例如 &gt; &lt; &amp; 等,即使您儲存後,它們仍會保持不動。
允許在「可視化」模式下輸入額外的空格(或在「HTML」模式下使用 &nbsp;),它們也將保持不動,使您能夠正確縮排程式碼範例等。

如果您正在撰寫帶有原始碼或 HTML 範例的博客文章,您可能會發現這個小外掛程式可以幫助您避免許多困擾。

適用於 TinyMCE 和 TinyMCE 高級外掛程式。

請注意,此外掛程式是用於解決 WordPress 使用 TinyMCE 的問題,而不是編輯器本身的問題。

如果您嘗試這個外掛程式,並且喜歡所見到的,或者您有問題或疑問,歡迎發送郵件至 [email protected] 或瀏覽TinyMCE Entities Patch Plugin Home Page 網站,並分享您的意見。

(尚未在任何低於 2.5.1 版本的 WordPress 上進行測試。它可能可以運行在較早的版本上,但我不確定。請嘗試並查看。如果它沒有運作,只需停用外掛程式即可。如果它運作,請讓我知道!)

版本 1.0 釋出說明

版本 1.0 的變更

這是外掛程式的初始版本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 > < " 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   entity. So, I finally bit the bullet and wrote this little plugin to fix these problems. It does just two things: Allows you to enter HTML entities like > < & etc. while in “Visual” mode and they will stay put, even after you save your post. Allows you to type extra spaces while in “Visual” mode (or   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 [email protected] 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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon