html-to-draftjs icon indicating copy to clipboard operation
html-to-draftjs copied to clipboard

Allow custom node transform

Open bubenkoff opened this issue 7 years ago • 1 comments

This adds possibility to pass user-defined transform function to convert html node to a user-defined entity. This is basically a reflection of customEntityTransform of draftjs-to-html package.


This change is Reviewable

bubenkoff avatar Jan 12 '18 02:01 bubenkoff

I tried to check the node and return the object you described in the README, but it did not work. Then I checked the code and saw the function expected an id. I then tried to return an id exactly like is done in the existing code, but it still did not work. I don't understand how it should, tbh.

I need the feature for <hr/> though.

nickyout avatar Mar 23 '18 10:03 nickyout