Title: CodeMirror for Post Editor
Author: Felipe Lavín
Published: <strong>2013 年 3 月 11 日</strong>
Last modified: 2014 年 4 月 15 日

---

搜索插件

![](https://ps.w.org/codemirror-for-post-editor/assets/banner-772x250.png?rev=694251)

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

![](https://s.w.org/plugins/geopattern-icon/codemirror-for-post-editor_2c2d29.svg)

# CodeMirror for Post Editor

 作者：[Felipe Lavín](https://profiles.wordpress.org/felipelavinz/)

[下载](https://downloads.wordpress.org/plugin/codemirror-for-post-editor.0.4.1.zip)

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

 [支持](https://wordpress.org/support/plugin/codemirror-for-post-editor/)

## 描述

This plugin adds an editor button that will let you use the great [CodeMirror](http://codemirror.net)
editor to edit the HTML code of your posts.

This editor supports code coloring and automatic tag closing on a big editor that
will let you write beautiful code on your WordPress posts.

Probably the best choice if you need to use complex HTML on your posts, or just 
enjoy writing in plain HTML.

## 屏幕截图

 * [[
 * You can use the CodeMirror editor activating the editor toolbar icon
 * [[
 * The editor opens on a big and wide dialog, so you can focus on your code

## 安装

 1. Upload the plugin
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Done! You can use it

## 常见问题

  What browsers can run CodeMirror?

The following desktop browsers are able to run CodeMirror:

 * Firefox 3 or higher
 * Chrome, any version
 * Safari 5.2 or higher
 * Opera 9 or higher (with some key-handling problems on OS X)
 * Internet Explorer 8 or higher in standards mode.
 * Internet Explorer 7 (standards mode) is usable, but buggy.

  How can I contribute with an idea or feature request? Where can I report bugs?

Checkout my [project repository on GitHub](https://github.com/felipelavinz/codemirror-for-post-editor)

## 评价

此插件暂无评价。

## 贡献者及开发者

「CodeMirror for Post Editor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Felipe Lavín ](https://profiles.wordpress.org/felipelavinz/)

[帮助将「CodeMirror for Post Editor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/codemirror-for-post-editor)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.4.1

 * Backwards compatibility fix for WordPress 3.8

#### 0.4

 * Fixed for compatibility with WordPress 3.9
 * Optimized loading of some scripts
 * Changed the toolbar icon for one of WordPress Dashicons
 * Some very minor styling fixes

#### 0.3

 * Updated CodeMirror version to 3.2.0
 * Fixed z-index issues with the new WordPress image library (and… using the new
   library methods instead of the old uploader)

#### 0.2.1

 * Load scripts on all post-types

#### 0.2

 * Fixes uncorrect line breaks inside lists and other elements

#### 0.1

 * First working version, fairly complete

## 额外信息

 *  版本 **0.4.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/codemirror-for-post-editor/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[editor](https://cn.wordpress.org/plugins/tags/editor/)
   [html](https://cn.wordpress.org/plugins/tags/html/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [writing](https://cn.wordpress.org/plugins/tags/writing/)
 *  [高级视图](https://cn.wordpress.org/plugins/codemirror-for-post-editor/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/codemirror-for-post-editor/reviews/)

## 贡献者

 *   [ Felipe Lavín ](https://profiles.wordpress.org/felipelavinz/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/codemirror-for-post-editor/)