Title: Save Me
Author: davidfcarr
Published: <strong>2011 年 3 月 18 日</strong>
Last modified: 2011 年 3 月 21 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/save-me.svg)

# Save Me

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

[下载](https://downloads.wordpress.org/plugin/save-me.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/save-me/)

## 描述

The Save Me plugin saves JavaScript and other inline code from distortion by the
WordPress rich text editor. Add code in the editor’s VISUAL mode, bracketing it 
with the shortcode `[saveme][/saveme]`.

While it is possible without a plugin to switch to HTML editing mode and paste JavaScript
into a post, often the code will be scrambled if you toggle back and forth between
the HTML and Visual modes. For example, the TinyMCE editor sometimes eliminates 
what it doesn’t understand — like empty divs into which your JavaScript or AJAX 
widget needs to inject content. And since JavaScript code is not displayed with 
any representation in the visual editor, it’s easy to accidentally delete.

In rich tech mode, the editor will treat your code as if it were a code sample you
were writing about, rather than a script to be executed. You may see distortions,
like quotation marks being turned into curly quotes, but at least you can keep track
of where you inserted the code. The saveme shortcode function reverses HTML entity
transformations and turns your JavaScript widget back into executable code.

The saveme shortcode has been tested with Facebook social widgets and Google Adsense
JavaScript blocks. If you encounter JavaScript that does not work after being passed
through this function, contact me through [**Carr Communications Inc.**](http://www.carrcommunications.com/)
and I will try to determine why not.

This is a spinoff of a similar function in [**Facebook Tab Manager for WordPress**](http://www.carrcommunications.com/wordpress-plugins/facebook-tab-manager/)

### Credits

    ```
    Facebook Tab Manager
    Copyright (C) 2011 David F. Carr

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    See the GNU General Public License at <http://www.gnu.org/licenses/>.
    ```

## 屏幕截图

 * [[
 * Using the `saveme` shortcode in the editor
 * [[
 * Reconstituted as working JavaScript

## 安装

 1. Upload the entire `save-me` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

  Where can I get more information about using Facebook Tab Manager?

See the [plugin homepage](http://www.carrcommunications.com/wordpress-plugins/save-me/).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Save Me」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/save-me)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

First public release, March 2011

## 额外信息

 *  版本 **1.1**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/save-me/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [rich text editor](https://cn.wordpress.org/plugins/tags/rich-text-editor/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)
 *  [高级视图](https://cn.wordpress.org/plugins/save-me/advanced/)

## 评级

 1 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/save-me/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/save-me/)