mdx-editor / mdx-editor/editor
[BUG] Image toolbar moves outside of editor if image url is invalid
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 307
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 5
Description
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- I have read the documentation and cannot find an answer.
Describe the bug
Image toolbar moves outside of the editor when image can't be loaded.
This is especially annoying if the editor covers the whole width of the page, because then most of the toolbar is not inside the window.
To Reproduce
Steps to reproduce the behavior:
- Open an editor instance with image plugin
- Insert image, use an invalid URL, e.g.
/a.jpeg
Expected behavior
Image toolbar is fully contained within the editor.
Screenshots
Editor covering full width of the page:
Desktop (please complete the following information):
- OS: any
- Browser [e.g. Chrome, Safari]: Chrome
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce this in an editor instance with the image plugin by inserting an image with an invalid URL such as /a.jpeg. Trace the image toolbar positioning behavior when the image cannot load, then verify that the toolbar remains fully contained within the editor, including when the editor spans the page width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100