Skip to content
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

fix: treat images as inline #121

Merged
merged 1 commit into from
May 4, 2022
Merged

Conversation

dancormier
Copy link
Contributor

Fixes #53 very simply by rendering images in a span instead of a div.

I'm fully ready to learn that this is an overly-simple solution but it works fine* AFAICT πŸ€·β€β™‚οΈ


*It works fine as-in there are no notable regressions. UX is a little lacking in being able move your cursor around freely, but that's a bigger issue and one that I consider out of scope for this PR.

@dancormier dancormier added bug Something isn't working mode - rich text Affects the editor's rich text (wysiwyg) mode labels May 4, 2022
@dancormier dancormier requested a review from b-kelly May 4, 2022 16:59
@netlify
Copy link

netlify bot commented May 4, 2022

βœ… Deploy Preview for nifty-lalande-39c157 ready!

Name Link
πŸ”¨ Latest commit 7663328
πŸ” Latest deploy log https://app.netlify.com/sites/nifty-lalande-39c157/deploys/6272b0d803a49c000a21df5f
😎 Deploy Preview https://deploy-preview-121--nifty-lalande-39c157.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@b-kelly b-kelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that was simple. Good callout on the cursor movement - I bet that's as simple as not forcing input focus when the popover opens

@b-kelly b-kelly merged commit 00cd3ea into main May 4, 2022
@b-kelly b-kelly deleted the dcormier/images-block-to-inline branch May 4, 2022 17:55
@b-kelly
Copy link
Collaborator

b-kelly commented May 4, 2022

I opened an issue for the cursor bug: #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mode - rich text Affects the editor's rich text (wysiwyg) mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Images being treated as blocks, but should be treated as inline
2 participants