Skip to content

Add ref to contenteditable - #6381

Merged
zurfyx merged 15 commits into
mainfrom
a11yfixes
Jul 15, 2024
Merged

zurfyx merged 15 commits into
mainfrom
a11yfixes

Conversation

@zurfyx

@zurfyx zurfyx commented Jul 8, 2024 •

Copy link
Copy Markdown
Member

For some reason we ended up with a custom version of LexicalContentEditable in some internal places. There are some minor differences: role, ref and the need for an editor instance for the oldest that haven't yet migrated to MLC. This PR makes it up to par with the internal version and is fairly safe.

Also includes some fixes to the placeholder typing that wasn't entirely working as expected.

Closes #6399

@vercel

vercel Bot commented Jul 8, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 11:31pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 11:31pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 8, 2024
@github-actions

github-actions Bot commented Jul 8, 2024 •

Copy link
Copy Markdown

size-limit report 📦

Path Size
lexical - cjs 28.48 KB (0%)
lexical - esm 28.29 KB (0%)
@lexical/rich-text - cjs 36.9 KB (0%)
@lexical/rich-text - esm 28.14 KB (0%)
@lexical/plain-text - cjs 35.49 KB (0%)
@lexical/plain-text - esm 25.34 KB (0%)
@lexical/react - cjs 38.8 KB (0%)
@lexical/react - esm 29.31 KB (0%)

@zurfyx
zurfyx added this pull request to the merge queue Jul 15, 2024
Merged via the queue into main with commit 663bbd4 Jul 15, 2024
2wheeh pushed a commit to 2wheeh/lexical that referenced this pull request Jul 17, 2024
@zurfyx
zurfyx deleted the a11yfixes branch February 28, 2025 18:18

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 164fc944 Deployed Jul 11, 2024 by vercel[bot]
Preview – lexical — 164fc944 Deployed Jul 11, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Expose <ContentEditable /> HTMLElement ref

3 participants