draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

convertFromHTML not documented

Open aaronshaf opened this issue 10 years ago • 6 comments

aaronshaf avatar Mar 28 '16 05:03 aaronshaf

cc @CLowbrow @mitermayer

We could probably have a little information on this in the http://facebook.github.io/draft-js/docs/api-reference-data-conversion.html#content section.

hellendag avatar Mar 28 '16 17:03 hellendag

I can write something this week if you want to give this to me.

CLowbrow avatar Mar 28 '16 17:03 CLowbrow

Happy to help on it too, @CLowbrow let me know if there is anything I can do on it. :)

mitermayer avatar Mar 29 '16 04:03 mitermayer

@mitermayer thanks! I'm going throw something together and send a PR. Would be great to get your feedback/edits once I have something.

CLowbrow avatar Mar 29 '16 18:03 CLowbrow

@CLowbrow any progress ever made on this? I'd love to see even a partial writeup in this issue so I can have something to go off of. The doc up currently provides no information as to what all the parameters are or what they do. So I really don't know how to use the function at all.

I'm going to take a look at the source and if I get a good understanding of it I'll come back and write what I find.

edit: found this https://github.com/facebook/draft-js/blob/8ac72f723fb2d9102db833a9b060dfd66df65652/examples/convertFromHTML/convert.html

which gives a great example on how to use the function. FYI for anyone else looking for info on this.

smtheard avatar Nov 08 '16 19:11 smtheard

@smtheard There is now an example using convertFromHTML in the examples folder in master.

tylercraft avatar Nov 08 '16 19:11 tylercraft