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

Inline-Blocks are not inline when added through the "+" button #8888

Open
ChannKan opened this issue Oct 28, 2024 · 0 comments
Open

Inline-Blocks are not inline when added through the "+" button #8888

ChannKan opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels

Comments

@ChannKan
Copy link

Describe the Bug

When adding a inline-block through the side "+" button in a rich-text field it is added as a block under the current line and not inline.
Because this is the general behavior of the "+" button inline-blocks should not be enabled.

Link to the code that reproduces this issue

https://github.com/shefing/payload_Inline_block_with_relationship/tree/Inline_block_with_relationship

Reproduction Steps

Steps to reproduce:

  1. Clone the link to reproduction ripo and launch Payload
  2. Create a new Post instance
  3. Type text into the rich-text field
  4. Add a inline-block in the same line as the text with the "+" button

Expected:
Inline-block is added after the text in the same line

Actual:
Inline-block is added under the text in the next line (Attached screenshot)
Image

Which area(s) are affected? (Select all that apply)

plugin: richtext-lexical

Environment Info

Output from 'pnpm payload info':
Binaries:
Node: 20.9.0
npm: 10.2.5
Yarn: 1.22.21
pnpm: 9.10.0
Relevant Packages:
payload: 3.0.0-beta.104
next: 15.0.0-canary.104
@payloadcms/db-mongodb: 3.0.0-beta.104
@payloadcms/graphql: 3.0.0-beta.104
@payloadcms/live-preview: 3.0.0-beta.104
@payloadcms/next/utilities: 3.0.0-beta.104
@payloadcms/plugin-cloud-storage: 3.0.0-beta.104
@payloadcms/plugin-redirects: 3.0.0-beta.104
@payloadcms/plugin-seo: 3.0.0-beta.104
@payloadcms/richtext-lexical: 3.0.0-beta.104
@payloadcms/storage-s3: 3.0.0-beta.104
@payloadcms/translations: 3.0.0-beta.104
@payloadcms/ui/shared: 3.0.0-beta.104
react: 19.0.0-rc-06d0b89e-20240801
react-dom: 19.0.0-rc-06d0b89e-20240801

@ChannKan ChannKan added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Oct 28, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants