-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: escapemanuele <[email protected]> Co-authored-by: Renan <[email protected]>
- Loading branch information
1 parent
529f79e
commit 4955117
Showing
14 changed files
with
243 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
# Verbum Block Editor | ||
|
||
Verbum Block Editor is a lightweight Gutenberg editor designed specifically for comments. It provides a simplified and intuitive interface for users to compose and format their comments effortlessly. | ||
Verbum Block Editor is a lightweight Gutenberg editor, tailored specifically for enhancing the commenting experience. It offers a user-friendly interface, enabling effortless composition and formatting of comments. | ||
|
||
## Features | ||
|
||
- Autofocus on the last block when the empty white space is clicked. | ||
- Autofocus on the first paragraph on load. | ||
- Handles embeds by adding all the needed API middlewares. | ||
- Uses and iframed editor to limit CSS collisions. | ||
- Automatically focuses on the last block when clicking on any empty white space. | ||
- Initial focus is set to the first paragraph upon loading. | ||
- Efficiently handles embeds by integrating all necessary API middlewares. | ||
- Incorporates an iframed editor to minimize CSS collisions. | ||
|
||
## WIP | ||
Soon, this will be published on NPM and used everywhere a user can edit comments (in Verbum and in Calypso's `/comments/all/` page). | ||
## Development | ||
|
||
This package can be utilized in two primary ways: | ||
|
||
### Directly In Calypso | ||
- The package is directly integrated into Calypso as a standard package. | ||
- No separate build process is required after modifications. | ||
- Direct file alterations are reflected immediately in Calypso. | ||
|
||
### Via widgets.wp.com | ||
- The package publishes a bundle on widgets.wp.com for broader accessibility. | ||
- Development process: | ||
1. Navigate to the package's directory: `cd package/verbum-block-editor`. | ||
2. Execute `yarn dev --sync`. | ||
3. Changes are synchronized to `/home/wpcom/public_html/widgets.wp.com/verbum-block-editor` on your sandbox. | ||
|
||
### Deploying Changes | ||
|
||
To deploy modifications to the package: | ||
1. Ensure your sandbox is in a clean git state. | ||
2. Run `yarn build --sync`. | ||
3. Create a patch. | ||
4. Deploy the patch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.