Title: TinyMCE Entities Patch
Author: EnglishMike
Published: <strong>2008 年 7 月 8 日</strong>
Last modified: 2008 年 7 月 15 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/tinymce-entities-patch.svg)

# TinyMCE Entities Patch

 作者：[EnglishMike](https://profiles.wordpress.org/stringfold/)

[下载](https://downloads.wordpress.org/plugin/tinymce-entities-patch.zip)

 * [详情](https://cn.wordpress.org/plugins/tinymce-entities-patch/#description)
 * [评价](https://cn.wordpress.org/plugins/tinymce-entities-patch/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/tinymce-entities-patch/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/tinymce-entities-patch/#developers)

 [支持](https://wordpress.org/support/plugin/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](http://englishmike.net/tinymceentities-plugin/)
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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ EnglishMike ](https://profiles.wordpress.org/stringfold/)

[帮助将「TinyMCE Entities Patch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tinymce-entities-patch)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/tinymce-entities-patch/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/tinymce-entities-patch/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/tinymce-entities-patch/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/tinymce-entities-patch/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**18 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **2.5.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/tinymce-entities-patch/)
 * 标签
 * [bug](https://cn.wordpress.org/plugins/tags/bug/)[html](https://cn.wordpress.org/plugins/tags/html/)
   [HTML entities](https://cn.wordpress.org/plugins/tags/html-entities/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [tinyMCE](https://cn.wordpress.org/plugins/tags/tinymce/)
 *  [高级视图](https://cn.wordpress.org/plugins/tinymce-entities-patch/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/tinymce-entities-patch/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/tinymce-entities-patch/reviews/)

## 贡献者

 *   [ EnglishMike ](https://profiles.wordpress.org/stringfold/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/tinymce-entities-patch/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://englishmike.net/other-plugins/tinymceentities-plugin/)