Does anybody have a working inline images / upload lexical feature?
Would def love this feature added.
do you have any workarounds in mind?
no, I think we'll need to wait for
@360823574644129795to save us 😄
yea lol, especially since lists are hard to just make :(
import { SerializedBlockNode } from "@payloadcms/richtext-lexical";
import { Block } from "payload/types";
export const ListBlock: Block = {
slug: "List",
interfaceName: "ListBlock",
fields: [
{
name: "type",
type: "select",
required: true,
admin: {
description: "The message to display in the alert",
},
options: [
{
label: "Ordered",
value: "ordered",
},
{
label: "Unordered",
value: "unordered",
},
],
},
{
name: "items",
type: "array",
required: true,
fields: [
{
name: "item",
type: "richText",
required: true,
},
],
},
],
};
}I made this custom block, which works on my frontend.. you can use it if you want till the payload team gets inline images working
Did you ever find a nice solution for this
@114557048678514693? Was thinking of implementing it as a custom block (with a image field and it's own rich text field), but I didn't really love the editor experience with that approach.
Tried adding a "position" field to uploads in the Lexical editor ('centered', 'floatLeft' and so on) but I can't seem to figure out how to style it so my image would floating left or right to the following paragraph/content in the richtext.
See screenshot for reference of what I'm trying to accomplish visually.
mine has it working on the frontend
https://github.com/tyteen4a03/payload-lexical-renderer-exampleStar
Discord
online
Get dedicated engineering support directly from the Payload team.