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

Question: can I load html into the editor instead of manually build? #632

Open
sunshineo opened this issue May 8, 2024 · 1 comment
Open

Comments

@sunshineo
Copy link

Simple email html pages
Our editor have the basic components
Now we look at the page and drag components to build a page/layout looks the same
Can we somehow load the email html page automatically?

@sunshineo sunshineo changed the title Question: can I load html into the editor instead of manually build manually? Question: can I load html into the editor instead of manually build? May 8, 2024
@prevwong
Copy link
Owner

You will need to create a parser to parse the HTML code into Craft's EditorState (or use one of the open source HTML to JSX converters, and then pass that JSX into Craft)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants