Skip to content

HTML to Slate converter #14

Description

@kamilmielnik

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions