html-to-draftjs
html-to-draftjs copied to clipboard
Allow custom node transform
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.
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.