Draft
Conversation
Introduces a new inline block for embedding images within rich text content. Supports float left/right with text wrapping and inline positioning with configurable vertical alignment. Registered in defaultLexical and Posts collection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ible caption Replace small/medium/large presets with more flexible sizing options: original, 25/50/75/100% container width, and fixed pixel height. Caption now renders as visible text below the image instead of a tooltip. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Preview deployment: https://inline-media-block.preview.avy-fx.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP
Remaining things to address:
Description
Adds a new
InlineMediainline block for the Lexical rich text editor, allowing editors to embed images directly within text flow. Images can be positioned inline with configurable vertical alignment, or floated left/right with text wrapping.Related Issues
None, alternative to #961
Key Changes
InlineMediablock (src/blocks/InlineMedia/) — config and component for inline media in rich textinlineBlockHow to test
pnpm devand navigate to the admin panelScreenshots / Demo video
https://www.loom.com/share/a167f8e500824d60b88914fe6b66014b
Hmm I wonder if floats are too confusing to content editors when they can use them, unconstrained in the ContentBlock?

Migration Explanation
No migration needed — this adds a new inline block type to existing Lexical rich text fields. Existing content is unaffected.
Future enhancements / Questions