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

Code blocks are stripped #20

Closed
chiedo opened this issue Aug 18, 2017 · 2 comments
Closed

Code blocks are stripped #20

chiedo opened this issue Aug 18, 2017 · 2 comments

Comments

@chiedo
Copy link

chiedo commented Aug 18, 2017

Sadly, code block html is not showing up when using

draftToHtml(convertToRaw(editorContent.getCurrentContent()))

All I get is a blank where the code blocks were in the editor.

I confirmed that convertToRaw(editorContent.getCurrentContent()) functions as expected which leaves draftToHTML as the culprit

@jpuri
Copy link
Owner

jpuri commented Aug 18, 2017

draftjs-to-html@0.7.5 has the fix.

@jpuri jpuri closed this as completed Aug 18, 2017
@chiedo
Copy link
Author

chiedo commented Aug 18, 2017

Thanks!!!

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