Skip to content
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

[Gutenberg] Voice to content #20852

Merged
merged 9 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ext {
automatticAboutVersion = '1.4.0'
automatticRestVersion = '1.0.8'
automatticTracksVersion = '5.0.0'
gutenbergMobileVersion = 'v1.119.0-alpha2'
gutenbergMobileVersion = '6878-988f4ea8258afce00fb01640d3368bb4117e33f2'
wordPressAztecVersion = 'v2.1.3'
wordPressFluxCVersion = '2.79.0'
wordPressLoginVersion = '1.15.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ public void onRedoPressed() {
mWPAndroidGlueCode.onRedoPressed();
}

public void onVoiceToContent(String content) {
mWPAndroidGlueCode.onVoiceToContent(content);
}

public void updateCapabilities(GutenbergPropsBuilder gutenbergPropsBuilder) {
// We want to make sure that activity isn't null
// as it can make this crash to happen: https://github.com/wordpress-mobile/WordPress-Android/issues/13248
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ public void onEditorDidMount(ArrayList<Object> unsupportedBlocks) {
@Override
public void run() {
setEditorProgressBarVisibility(!mEditorDidMount);

getGutenbergContainerFragment().onVoiceToContent(
geriux marked this conversation as resolved.
Show resolved Hide resolved
"# Sample Document\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\n## Overview\n- Lorem ipsum dolor sit amet\n- Consectetur adipiscing elit\n- Integer nec odio\n## Details\n1. Sed cursus ante dapibus diam\n2. Nulla quis sem at nibh elementum imperdiet\n3. Duis sagittis ipsum\n## Mixed Lists\n- Key Points:\n 1. Lorem ipsum dolor sit amet\n 2. Consectetur adipiscing elit\n 3. Integer nec odio\n- Additional Info:\n - Sed cursus ante dapibus diam\n - Nulla quis sem at nibh elementum imperdiet\n - Duis sagittis ipsum\n## Conclusion\n- Praesent libero\n- Sed cursus ante dapibus diam\n- Suspendisse malesuada lacus ex");
}
});
}
Expand Down
Loading