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

Access rendered HTML #19

Open
scarroll32 opened this issue Apr 24, 2018 · 1 comment
Open

Access rendered HTML #19

scarroll32 opened this issue Apr 24, 2018 · 1 comment

Comments

@scarroll32
Copy link
Contributor

Provide a means to extract rendered HTML for storage in a backend. This will allow a rendered Typewriter document to be used in an application where no edits are possible. ie: One page is edit and the document is authored, while on another page the rendered document is viewed.

@jacwright
Copy link
Member

While not documented yet, view.getHTML() and view.setHTML(htmlString) are available. These allow you to get the HTML of the contents in a performant way without the decorators which may exist in the actual HTML.

getHTML actually could work without being in the browser, but setHTML leans on the browser to convert the text to DOM then converts it to a Delta. If we can change this without adding significantly to the codebase it would be nice.

@scarroll32 scarroll32 self-assigned this Apr 25, 2018
@scarroll32 scarroll32 removed their assignment May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants