Goal is to implement something that will allow people to convert their HTML into Prezly stories.
It should be a function that generates Prezly Slate document. It's going to have to be an async function so that editor has time to replace any image-candidate nodes. It should be smart enough to use onIsOperationPendingChange prop from EditorV4.
import { DocumentNode } from '@prezly/slate-types';
export function async fromHtml(html: string, rtf?: string): Promise<DocumentNode>;
Original report: https://linear.app/prezly/issue/DEV-1987/implement-and-expose-fromhtml-function
Goal is to implement something that will allow people to convert their HTML into Prezly stories.
It should be a function that generates Prezly Slate document. It's going to have to be an async function so that editor has time to replace any
image-candidatenodes. It should be smart enough to useonIsOperationPendingChangeprop fromEditorV4.Original report: https://linear.app/prezly/issue/DEV-1987/implement-and-expose-fromhtml-function