Inline-Blocks are not inline when added through the "+" button
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:
- Clone the link to reproduction ripo and launch Payload
- Create a new Post instance
- Type text into the rich-text field
- 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)
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