[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. |
| } from '../../../utils/selection'; | ||
|
|
||
| function findSelection( blocks ) { | ||
| export function findSelection( blocks ) { |
There was a problem hiding this comment.
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
inputRulefunction with parts of the web's code.Adds a new check within the
onChangeFromAzteccallback within the RichText component to check for input rules.Modifies
getBlockTransformsto allowprefixtypes 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