Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML to Slate converter #14

Open
kamilmielnik opened this issue Mar 26, 2021 · 0 comments
Open

HTML to Slate converter #14

kamilmielnik opened this issue Mar 26, 2021 · 0 comments
Labels
Priority - Low Type - Feature New feature or request

Comments

@kamilmielnik
Copy link
Contributor

kamilmielnik commented Mar 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority - Low Type - Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant