Title: Preserved HTML Editor Markup Plus
Author: J-Ro
Published: <strong>2014 年 9 月 23 日</strong>
Last modified: 2019 年 12 月 11 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/preserved-html-editor-markup-plus.svg)

# Preserved HTML Editor Markup Plus

 由 [J-Ro](https://profiles.wordpress.org/j-ro/) 開發

[下載](https://downloads.wordpress.org/plugin/preserved-html-editor-markup-plus.1.5.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/preserved-html-editor-markup-plus/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/preserved-html-editor-markup-plus/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/preserved-html-editor-markup-plus/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/preserved-html-editor-markup-plus/#developers)

 [技術支援](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/)

## 外掛說明

This plugin preserves the user-generated HTML markup in the TinyMCE editor. Unlike
other plugins this one allows developers to work in the HTML tab AND end-users to
work in the WYSIWYG Visual tab at the same time! No longer will your HTML markup
be completely munged into an unrecognizable form when you switch between those tabs.
And you don’t have to hang your users/editors out to dry when you hand off the project
with a disabled Visual tab.

#### IMPORTANT: Please read the installation instructions carefully. If you have existing content it will not render properly after activating this plugin until you use the Fix It Tools.

(One user didn’t read or follow these steps and panicked thinking I ruined their
website.)

It also supports HTML5 Block Anchor tags in addition to other HTML5 elements, something
that is currently not supported in WordPress via any existing plugins.

## 安裝方式

 1. Upload the plugin contents to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress Admin
 3. If you have existing content that needs fixing, use the “Fix Posts” feature under
    Admin > Settings > Writing: Fix Existing Content.
 4. You’re done!

## 常見問題集

  When will code tag issues be resolve?

This is a tough one. Not only do I have no idea why they’re being trumped, but I
also have a daughter that will be born pretty soon :D, and a project at work that
is about to get hectic 🙁 I’ll try to fix it when I can but if you have the skills
to help debug the help would be greatly appreciated.

  Does this plugin actually disable wpautop?

Yes. And unlike virtually every other “disable wpautop” plugin this one will actually
disable the client-side version of wpautop that runs when you switch between the
Visual and HTML tabs. Even when using the P Tag mode or hybrid mode, wpautop is 
disabled and custom code is being used to inject paragraphs a little more intelligently.

  What exactly do the “Fix Posts” or “Fix XXX” buttons do to my content?

Firstly, only use this feature if you are starting new with version 1.2. And definitely
backup your database before running these tools, they have only been tested on two
sites so far. And although in theory it is safe, you should still protect yourself.

The fix actually just runs wpautop one final time on the posts in the database. 
By default WordPress runs that function every time it displays content, so the raw
data in the database is free of any paragraph tags & other formatting tweaks. The
Fix buttons update the raw content in the database with the formatted version wpautop
produces. And fortunately wpautop was designed in a way that it can be run multiple
times so it shouldn’t mangle your content.

All of your post content will be converted, including past revisions. So if you 
need to revert a page or post after you activate this feature, you won’t have to
reformat the previous version by hand.

The plugin also keeps track of when it was activated, so it will only modify content
that was edited before the plugin was activated. So if you created some new content
after activating the plugin and later realized all of your other content wasn’t 
displaying correctly it’s safe to use the Fix buttons without ruining your new content.

## 使用者評論

![](https://secure.gravatar.com/avatar/e5e4f8165cc3d2a408f0cb7d766183cbe5cbbc741e0f3ee42145f49539c0fbaa?
s=60&d=retro&r=g)

### 󠀁[2022 and still working. Bravo](https://wordpress.org/support/topic/2022-and-still-working-bravo/)󠁿

 [dreamtours](https://profiles.wordpress.org/dreamtours/) 2022 年 11 月 15 日

This plugin is for advanced wordpress users.

![](https://secure.gravatar.com/avatar/8f22cdf3c140ee45e3e0773082b2e3d337c75b2b373c98ad2947796d018e0b85?
s=60&d=retro&r=g)

### 󠀁[No use – Don’t install](https://wordpress.org/support/topic/no-use-dont-install/)󠁿

 [srinivasrjy](https://profiles.wordpress.org/srinivasrjy/) 2020 年 2 月 5 日

Text Centering not Works. So many files. Instead use Simple single file Plugin –"
Protect schema.org markup in HTML editor"

![](https://secure.gravatar.com/avatar/7f82222a6e5af768209a06690c3d46ec0977de2c41129797530bdf12464eb3d0?
s=60&d=retro&r=g)

### 󠀁[Meh](https://wordpress.org/support/topic/meh-44/)󠁿

 [kuroimatoo](https://profiles.wordpress.org/kuroimatoo/) 2018 年 11 月 24 日

Yeah, it doing it's job – wordpress now don't f*ck up all my code after switching
to visual editor, but now text editor looks like one big paragraph and completely
unreadable, maybe it's ok for someone but not for me, sadly.

![](https://secure.gravatar.com/avatar/d8219bae15bc383af5e06c21022282b6f5f1f3fa576cc5ff6c4840d572b938d7?
s=60&d=retro&r=g)

### 󠀁[don’t waste your time](https://wordpress.org/support/topic/dont-waste-your-time-71/)󠁿

 [expomas](https://profiles.wordpress.org/expomas/) 2018 年 7 月 13 日

doesn't do anything

![](https://secure.gravatar.com/avatar/ba054c19807e1d7755850c9cfe55894099332b65f10eb85d09aaf2528df4b101?
s=60&d=retro&r=g)

### 󠀁[Works as described](https://wordpress.org/support/topic/works-as-described-207/)󠁿

 [stevepritchardwoodturning](https://profiles.wordpress.org/stevepritchardwoodturning/)
2017 年 11 月 24 日

I've only just installed it and done some testing, but it appears to work as advertised.
It will save me considerable time! Thanks!

![](https://secure.gravatar.com/avatar/89fe0435589fff2b8a7a310fe847470ee9b9a3269045fa8e5efaca94d37a1ecb?
s=60&d=retro&r=g)

### 󠀁[Avoid it like the plague!](https://wordpress.org/support/topic/avoid-it-like-the-plague/)󠁿

 [tmgb](https://profiles.wordpress.org/tmgb/) 2017 年 10 月 13 日 11 則留言

The plugin completely ruined the website. I read the installation instructions and
yet, the website is still broken.

 [ 閱讀全部 36 則使用者評論 ](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Preserved HTML Editor Markup Plus〉的開發相關工作。

參與者

 *   [ J-Ro ](https://profiles.wordpress.org/j-ro/)
 *   [ MarcusPope ](https://profiles.wordpress.org/marcuspope/)
 *   [ Azragh ](https://profiles.wordpress.org/azragh/)

[將〈Preserved HTML Editor Markup Plus〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/preserved-html-editor-markup-plus)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/preserved-html-editor-markup-plus/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/preserved-html-editor-markup-plus/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/preserved-html-editor-markup-plus/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/preserved-html-editor-markup-plus/)。

## 變更記錄

#### 1.5.3

 * WP 4.3 compatibility.

#### 1.5.2

 * Fixes for a few issues, including handling newlines in HTML, handling comments,
   handling secure sites, and handling IE10 javascript errors.

#### 1.5.1

 * New TinyMCE version updates

#### 1.4

 * Removed ‘show_ui’ filter for fix custom post type buttons.

#### 1.3

 * Added support for inline JavaScript and CSS, as long as the wptexturize and convert_chars
   filters are disabled. (Thanks to ViennaMex for pointed out the problem.)
 * Added cache-buster for this plugin’s JavaScript includes to prevent upgrade issues
   seen in version 1.2 (Thanks to dreamdancerdesign, peterdub & abbyj for troubleshooting
   support.)
 * Special thanks to dreamdancerdesign for providing a live testing server – above
   and beyond.

#### 1.2

 * Added support for user-specified newline behavior per post type
 * Added support for multi-line html comments (Thanks cwlee_klagroup!)
 * Fixed a bug found in TinyMCE related to Format drop down
 * Added tools to convert existing site content programmatically by post type.

#### 1.1

 * Refactored for support of < php5.3 by replacing function references with static
   function array refs

#### 1.0

 * Initial creation of plugin

## 中繼資料

 *  版本 **1.5.4**
 *  最後更新 **7 年前**
 *  啟用安裝數 **3,000+**
 *  WordPress 版本需求 ** 3.2.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.3.27**
 *  語言
 * [English (US)](https://wordpress.org/plugins/preserved-html-editor-markup-plus/)
 * 標籤:
 * [editor](https://tw.wordpress.org/plugins/tags/editor/)[html](https://tw.wordpress.org/plugins/tags/html/)
   [markup](https://tw.wordpress.org/plugins/tags/markup/)[white space](https://tw.wordpress.org/plugins/tags/white-space/)
   [wpautop](https://tw.wordpress.org/plugins/tags/wpautop/)
 *  [進階檢視](https://tw.wordpress.org/plugins/preserved-html-editor-markup-plus/advanced/)

## 評分

 4.2 星，滿分為 5 星

 *  [  24 個 5 星使用者評論     ](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/?filter=5)
 *  [  4 個 4 星使用者評論     ](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/?filter=4)
 *  [  3 個 3 星使用者評論     ](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/?filter=2)
 *  [  4 個 1 星使用者評論     ](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/reviews/)

## 參與者

 *   [ J-Ro ](https://profiles.wordpress.org/j-ro/)
 *   [ MarcusPope ](https://profiles.wordpress.org/marcuspope/)
 *   [ Azragh ](https://profiles.wordpress.org/azragh/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/preserved-html-editor-markup-plus/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.marcuspope.com/wordpress)