-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] Support prefix transforms in mobile #62576
Conversation
Size Change: +5 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
Flaky tests detected in eac1559. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9515148245
|
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. |
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.
Awesome! Testing worked great in iOS and Android @geriux. I didn't try with a keyboard on iPad, but presume that would feel even more natural. 🚀
@@ -14,7 +14,7 @@ import { | |||
START_OF_SELECTED_AREA, | |||
} from '../../../utils/selection'; | |||
|
|||
function findSelection( blocks ) { | |||
export function findSelection( blocks ) { |
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.
Hey @ellatrix 👋 I was wondering if there would be any concerns about exporting this so the native editor can leverage its functionality?
Related PRs:
What?
This PR adds prefix support in the native editor.
Why?
To allow users to quickly create lists, headings, or quote blocks with different prefixes.
How?
By implementing the Web editor's functionality into the native editor.
Updates the
inputRule
function with parts of the web's code.Adds a new check within the
onChangeFromAztec
callback within the RichText component to check for input rules.Modifies
getBlockTransforms
to allowprefix
types in mobile.Testing Instructions
Note
Please use the following builds to test:
#
,##
,###
,-
,>
,1.
Heading
(Different levels),Quote
,List
(Numbered, standard)Testing Instructions for Keyboard
N/A
Screenshots or screencast
PrefixTransforms.mov