Skip to content

Add preview_token to rich text images#258

Open
TRomesh wants to merge 2 commits intomainfrom
feature/CMS-49472-add-support-to-rich-text
Open

Add preview_token to rich text images#258
TRomesh wants to merge 2 commits intomainfrom
feature/CMS-49472-add-support-to-rich-text

Conversation

@TRomesh
Copy link
Copy Markdown
Member

@TRomesh TRomesh commented Mar 16, 2026

  • Introduce a new param called context which allows RichText to access the preview_token and append it to image source.

* Content context for preview mode
*/
context?: {
edit?: boolean;
Copy link
Copy Markdown
Contributor

@JohanPetersson JohanPetersson Mar 18, 2026

Choose a reason for hiding this comment

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

Don't we already have constants/enum/type for all context modes (default, edit, and preview)? This context should have the same shape as the global context we're about to introduce, or be the same type or a subset of it. But as long as we don't release this before the global context is introduced, it shouldn't be an issue adjusting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants