Title: Custom JavaScript Editor
Author: Automattic
Published: <strong>2012 年 8 月 24 日</strong>
Last modified: 2016 年 4 月 14 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/custom-javascript-editor.svg)

# Custom JavaScript Editor

 作者：[Automattic](https://profiles.wordpress.org/automattic/)

[下载](https://downloads.wordpress.org/plugin/custom-javascript-editor.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/custom-javascript-editor/)

## 描述

Add custom JavaScript to your site from an editor in the WordPress admin.

Your code is stored and revisioned with a custom post type, so you can always go
back to a previous working state.

If you’d like to check out the code and contribute, [join us on GitHub](https://github.com/Automattic/Custom-Javascript-Editor).
Pull requests are more than welcome!

## 屏幕截图

 * [[
 * The back end editor
 * [[
 * The front end editor
 * [[
 * The front end editor

## 安装

 1. Upload the `custom-javascript-editor` folder to your plugins directory (e.g. `/
    wp-content/plugins/`)
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Josh Betz ](https://profiles.wordpress.org/betzster/)
 *   [ Daniel Bachhuber ](https://profiles.wordpress.org/danielbachhuber/)

[帮助将「Custom JavaScript Editor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-javascript-editor)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1 (Nov. 19, 2012)

 * The editor has a syntax highlighter with configurable themes.
 * jQuery Masonry is available as a library to use
 * Bug fix: Stop stripping arbitrary HTML markup

#### 1.0 (Oct. 8, 2012)

 * Enqueue any bundled JavaScript libraries on the frontend for use. Register your
   own with the ‘cje_available_scripts’ filter. Thanks [flentini](https://github.com/flentini)
   for the original pull request

#### 0.9.1

 * Bug fix: Use html_entity_decode() for decoding stored JavaScript so it properly
   renders

#### 0.9

 * Initial release

## 额外信息

 *  版本 **1.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-javascript-editor/)
 * 标签
 * [javascript](https://cn.wordpress.org/plugins/tags/javascript/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-javascript-editor/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Josh Betz ](https://profiles.wordpress.org/betzster/)
 *   [ Daniel Bachhuber ](https://profiles.wordpress.org/danielbachhuber/)

## 支持

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

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