Skip to content

Inline components for LexicalEditor #790

@stevenle

Description

@stevenle

Description

Now that we have support for custom block components in the lexical rich text, we should add the ability to embed inline components as well.

For example:

Lorem ipsum {lottie file} dolor sit amet

For purposes of translations, the inline components should be stored as placeholder text and substituted by the TSX component. TBD on what that looks like, but the data structure should store the inline component data separately from the paragraph string.

E.g.

{
  "type": "paragraph",
  "text": "Lorem ipsum {component:foo} dolor sit amet",
  "components": {
    "foo": { /* data for foo component */ }
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions