ellatrix / wp-front-end-editor

Front-end Editor for WordPress
https://wordpress.org/plugins/wp-front-end-editor/
341 stars 87 forks source link

Front-end Editor for WordPress

Contributors:      iseulde, wordpressdotorg, siteground
Tags:              front-end editor, inline editing
Requires at least: 4.6
Tested up to:      4.7
Stable tag:        2.2.0
License:           GPL-2.0+
Donate link:       https://iseulde.com/donate

A simple way to write with WordPress.

Description

Features

Configure and extend

This plugin is designed to be “plug and play”, but also configurable and extensible.

Toolbars and buttons

You can add more buttons to any of the toolbars with the following filters:

E.g.

add_filter('fee_toolbar_inline', function($buttons){
  return array_merge($buttons, array('subscript'));
});

You may need to provide extra CSS and JS. See the Codex page and TinyMCE docs for more information about adding toolbar buttons with TinyMCE.

Linking to the editor

You can link to the editor from anywhere on the website with the normal edit link to the admin, and it will be picked up by the plugin. Use edit_post_link or similar.

Custom Post Types Support

add_post_type_support( 'page', 'front-end-editor' );

Please make sure you also support the REST API.

Disable

If you’d like to disable the editor for certain posts, you can use the supports_fee filter.

// Disable for the post with ID 1.
add_filter('supports_fee', function($supports, $post) {
  return $post->ID !== 1;
}, 10, 2);