Replies: 1 comment 1 reply
-
This is currently the expected behavior and not a bug. As it’s not considered a bug, I’ll move this to a discussion. I’m open to discussing what the UX should look like My thoughts: the first thing the + button does is create a new paragraph, and only then does it open the menu - it’s not designed for operations on the same line. It’s also the most convenient way to add a new paragraph after a block node, thus I think we should keep this behavior. If we removed it from the + button, the only way to create inline blocks would be the fixed toolbar, and not everyone has it enabled. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
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)
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
Beta Was this translation helpful? Give feedback.
All reactions