Title: SafeEdit
Author: goldenlobster
Published: <strong>2026 年 10 月 12 日</strong>
Last modified: 2026 年 10 月 12 日

---

搜索插件

![](https://ps.w.org/safeedit/assets/banner-772x250.png?rev=3742422)

![](https://ps.w.org/safeedit/assets/icon.svg?rev=3741498)

# SafeEdit

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

[下载](https://downloads.wordpress.org/plugin/safeedit.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/safeedit/)

## 描述

SafeEdit gives non-technical clients a safe, restricted editing interface for your
pages and posts. Clients can only edit text content and swap images inside zones
you define — they cannot break layouts, delete sections, touch code, or reach the
WordPress admin.

**How it works**

 1. You mark editable areas with `data-safeedit="zone-name"` attributes in your page
    HTML, or simply leave Auto-Content Detection on so the main content area becomes
    editable automatically.
 2. Your client logs in, opens any page, toggles SafeEdit ON, and edits text inline
    or swaps images through the WordPress Media Library.
 3. Changes are autosaved, and a backup snapshot is kept before each editing session
    so any change can be rolled back.

**Key features**

 * Safe text editing — clients edit only within defined zones; the surrounding HTML
   structure is locked.
 * Image swapping — swap any image zone through the WordPress Media Library.
 * Auto-Content Detection — make the main content area editable with no template
   changes.
 * Automatic backups — a snapshot is taken before each session, with one-click “
   Previous versions” rollback from the frontend.
 * SafeEdit Client role — a custom role that can only view the site and edit zones.
   It cannot access wp-admin, create posts, or change settings.
 * Per-page control — enable or disable SafeEdit for each page from a metabox.
 * Per-client page permissions — choose which SafeEdit Client users can edit each
   page; unrestricted pages remain editable by every authorized client.
 * Paste protection — pasted content is stripped to safe markup (no script or HTML
   injection).
 * Block editor ready — on block editor (Gutenberg) pages, paragraphs, headings,
   list items, and images become editable automatically, and every save preserves
   block delimiters and attributes.
 * Server-side sanitization — all content is sanitized with WordPress’s `wp_kses`
   before saving; off-site images and `javascript:` links are stripped.
 * Rate limiting — save endpoints are rate limited to protect your server.
 * No third-party calls — SafeEdit does not load fonts, scripts, or styles from 
   external servers and does not phone home.

**Custom client role**

SafeEdit creates a “SafeEdit Client” role that can only view the frontend and edit
SafeEdit zones. Clients are redirected away from wp-admin. They cannot create posts,
change settings, install plugins, or do anything beyond editing the zones you allow.

**Looking for more?**

A separate premium version, SafeEdit Pro, adds Advanced Custom Fields (ACF) editing
and WooCommerce product and price editing. All features included in this free plugin,
including per-client page permissions, work without payment or a license key. The
separately distributed Pro plugin is optional. See the “Go Pro” tab in the plugin
settings for details.

SafeEdit is developed by Golden Lobster (WordPress.org username `goldenlobster`).
Product website: https://safeedit.site/.

## 安装

 1. Upload the `safeedit` folder to `/wp-content/plugins/`, or install the plugin through
    the Plugins screen in WordPress.
 2. Activate the plugin through the “Plugins” menu.
 3. (Optional) Add `data-safeedit="zone-name"` attributes to editable areas in your
    page HTML. Or just leave Auto-Content Detection enabled under Settings  SafeEdit.
 4. Create a user with the “SafeEdit Client” role (Users  Add New) for your client.
 5. Your client visits any enabled page and uses the floating toolbar to edit text 
    and images.

## 常见问题

### Do I need to modify my theme?

No. With Auto-Content Detection (on by default) the main content area becomes editable
automatically. For precise control you can add `data-safeedit="zone-name"` attributes
to specific elements in your page HTML or theme templates.

### What can clients edit?

Text content (headings, paragraphs, lists) and images (swapped through the Media
Library). They cannot change HTML structure, CSS, JavaScript, or layout.

### Is it safe?

Yes. All saved content is sanitized with WordPress’s `wp_kses` on the server. Clients
cannot inject scripts, change HTML structure, hotlink off-site images, or upload
disallowed file types. Save endpoints verify capabilities, the post type allowlist,
and per-page enable flags, and are rate limited.

### Can I roll back a change?

Yes. SafeEdit keeps a backup snapshot before each editing session. Clients can restore
a previous version from the frontend “Previous versions” panel, and administrators
can always revert from the standard WordPress revisions screen.

### Does it work with the block editor?

Yes. On pages built with the block editor, SafeEdit automatically makes paragraphs,
headings, list items, and images editable, block by block. Saves go through the 
block parser, so block delimiters and attributes are always preserved and the page
stays fully editable in wp-admin.

### Does it support page builders?

SafeEdit works with standard WordPress content and the block editor. It does not
currently support proprietary page-builder content such as Elementor, Divi, or WPBakery.

### Does it support multisite?

Yes.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release on WordPress.org.
 * Frontend text editing and image swapping within defined zones.
 * Auto-Content Detection for zero-config editing of the main content area.
 * Custom “SafeEdit Client” role restricted to zone editing.
 * Automatic pre-session backup snapshots with frontend rollback.
 * Per-page enable/disable metabox.
 * Automatic per-block editing on block editor pages, with block-aware saving.
 * Server-side sanitization, off-site image stripping, and rate limiting.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**1 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.4 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/safeedit/)
 * 标签
 * [content editing](https://cn.wordpress.org/plugins/tags/content-editing/)[frontend editing](https://cn.wordpress.org/plugins/tags/frontend-editing/)
   [inline editing](https://cn.wordpress.org/plugins/tags/inline-editing/)[revisions](https://cn.wordpress.org/plugins/tags/revisions/)
 *  [高级视图](https://cn.wordpress.org/plugins/safeedit/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/safeedit/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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