-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mobile] - Adds new bridge functionality for content #61796
Conversation
…ty that adds support to parse markdown content into blocks
Size Change: 0 B Total Size: 1.74 MB ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Flaky tests detected in ff53958. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9206158007
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @geriux! I'm approving, but we should consider David's feedback here. 🚀
* Mobile - Add onVoiceToContent bridge function * Mobile - Provider - Add listener for the onVoiceToContent functionality that adds support to parse markdown content into blocks * Adds integration test for onVoiceToContent * Rename onVoiceToContent to onContentUpdate * On Content Update, use the same functionality as in the Post Title component * Remove setting the title along side with the content * Update changelog Co-authored-by: geriux <geriux@git.wordpress.org> Co-authored-by: dcalhoun <dpcalhoun@git.wordpress.org> Co-authored-by: twstokes <twstokes@git.wordpress.org>
* Mobile - Add onVoiceToContent bridge function * Mobile - Provider - Add listener for the onVoiceToContent functionality that adds support to parse markdown content into blocks * Adds integration test for onVoiceToContent * Rename onVoiceToContent to onContentUpdate * On Content Update, use the same functionality as in the Post Title component * Remove setting the title along side with the content * Update changelog Co-authored-by: geriux <geriux@git.wordpress.org> Co-authored-by: dcalhoun <dpcalhoun@git.wordpress.org> Co-authored-by: twstokes <twstokes@git.wordpress.org>
Related PRs:
What?
This PR adds new functionality to the bridge to send content that will be inserted as blocks into the editor.
Why?
To allow other ways to create content from the host apps.
How?
Adds
onVoiceToContent
in the Gutenberg bridge which expects markdown/plain text.The editor will then parse that content using
pasteHandler
which will handle it and convert it into blocks.Testing Instructions
Integration tests have been added to cover this new functionality.
There are also builds available that call
onVoiceToContent
when the editor is opened to insert some hard-coded content.Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A