[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
|
twstokes
left a comment
There was a problem hiding this comment.
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
onVoiceToContentin the Gutenberg bridge which expects markdown/plain text.The editor will then parse that content using
pasteHandlerwhich 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
onVoiceToContentwhen the editor is opened to insert some hard-coded content.Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A