jpuri / draftjs-to-html

Library for converting Draftjs editor content state to HTML
MIT License
321 stars 143 forks source link

Added ability to transform entities using custom transform function #2

Closed tammomueller closed 7 years ago

tammomueller commented 7 years ago

Now that https://jpuri.github.io/react-draft-wysiwyg allows attaching a customBlockRenderer we need the ability to transform those entities to html.

This is achieved with this PR: It is backwards compatible and allows the use of a customEntityMarkupTransformation.

jpuri commented 7 years ago

Thanks a lot @tammomueller, I will merge it soon 👍

jpuri commented 7 years ago

Hey @tammomueller, I am thinking if custom-renderer should extending existing block rendering rather then replacing it.

jpuri commented 7 years ago

PR is merged, I will also soon release.