- Contributors: wordpressdotorg, ashfame
- Tags: gutenberg, collaborative-editing
- Requires at least: 6.0
- Tested up to: 6.8.2
- Requires PHP: 7.4
- License: GPLv2
- Stable tag: 0.1.0
- GitHub Plugin URI: https://github.com/ashfame/gutenberg-collaborative-editing
Enable collaborative editing in Gutenberg
Enable collaborative editing in Gutenberg.
This plugin adds a settings page under Settings > Collaborative Editing in the WordPress admin.
- Collaboration Mode:
- Read-only Follow: The first user to open a post gets editing rights, and subsequent users can only view the post in real-time.
- Block-level Locks: Multiple users can edit the same post, just not the same block. (🚧Functional, but still a Work in Progress)
- After cloning the GIT repo locally, run
nvm use,npm install. - Run
npm run buildonce or can also runnpm run start. - Run
npm run wp-env start(you will need docker running). - Login into WordPress (http://localhost:8888/wp-admin) with username
adminand password aspassword. - Configure the collaboration mode on
Settings > Collaborative Editing. - Create two or more users and log in from these user accounts in separate browser instances.
- Edit the same post or page for editing.
- Being on a call, these users can meaningfully participate already as of today.
- Run
nvm use,npm run packageto generate the zip file in thedistdirectory.
Install this plugin, configure the collaboration mode and have more than one user edit the same post or page.
Not yet. I need to figure out a good way to enable that. But eventually I would like it to be configurable as follows:
// functions.php
add_filter( 'gutenberg_collabrative_editing_enabled', function ( $post, $user_ids_collaborating, $user_id_initiating_collaboration ) {
// Add logic here
return $true;
} );- Offers a functional collaborative editing experience, with certain edge cases
- Initial dev release
