#How to add custom HTML converters to RichText

4 messages · Page 1 of 1 (latest)

rough breach
#

How do i add custom HTML converters fro HTML->RichText?

I have a custom block in RichText that i would like to convert from HTML->RichText,

How do i inject my custom html converter?

    const lexicalContent = convertHTMLToLexical({
      editorConfig: await editorConfigFactory.default({
        config: await payloadConfig
      }),
      html: processedHtml,
      // @ts-ignore (JSDOM is only typed for browser so we ignore TS here)
      JSDOM
    });
thorn salmon
#

Hi, you looking to upload images via html?

rough breach
#

Hi Arseniy, i have figured out how to upload images via html, i am trying to figure out how to convert to custom blocks from html