-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Return AttributeKey as number #58996
Comments
I believe it returns the It could be fixed by adding identifiers in the block, which I think might be best practice when a block contains more than one RichText element. |
@ellatrix, should we make |
Site Title and Site Tagline are examples of blocks where there's no reasonable It's bit of an unsolved problem what the |
Description
getSelectionStart()
function of block editor return attributeKey as number in Gutenberg file block. is it expected behavior? Shouldn’t it return selected attribute key from available attributes of file block instead of number ? what does this number represent ?Step-by-step reproduction instructions
Execute
wp.data.select("core/block-editor").getSelectionStart()
after selecting file block in editorScreenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: