facebook / facebook/lexical

Bug: Pasting text AND images from Microsoft Word (Client) omits the picture in the playground

Open
#5,216 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 16h
Merged PRs (30d)
61

Description

Lexical version: 0.12.2

## Steps To Reproduce

1. Open Microsoft Word (Client).
2. Write some text and paste an inline image.
3. Copy text AND inline image.
4. Paste into Lexical's playground.

Link to code example: https://playground.lexical.dev/

## The current behavior
Pasting text AND images from Microsoft Word (Client) omits the picture in the playground.

## The expected behavior
Pasting text AND images should include all content. **Do note, this works as expected in the Microsoft Word browser version.**

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in https://playground.lexical.dev/ using Microsoft Word Client, then compare the same paste from Word in a browser. Trace the playground's paste and clipboard handling to find why mixed text and inline-image content loses the image. Done means pasted text and images are both retained, matching the expected browser behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.