Ben Briggs

Results 31 comments of Ben Briggs

I'd encourage you guys to check out [`draft-convert`](https://github.com/HubSpot/draft-convert), it should handle the cases you're looking for.

Can you elaborate? I'm able to generate a block of type `blockquote` with the correct text when running `convertFromHTML` on input `test`.

@sineveel Thanks for the example! I see what you're saying now. It looks like there are a couple things that cause this to not work: 1. When converting from HTML...

Like I said I need to make a small change to draft-convert before that'll work. I'll try to publish it today

@sineveel Reopening because the first part is now fixed in #8 but not sure this fully solves your use case. The code you pasted above will now output ``` html...

There is not - decorators that aren't paired with an entity like in that example are usually meant for transient, editor-only UI and are independent of `ContentState` altogether. I'd recommend...

@jpca999 seems to work for me, did you make sure to `npm install`/`yarn` in your cloned directory?

oops sorry about that! had the wrong `.npmrc` active when most recently publishing. if you pull down `master` again it should be all set via 7e432811653247499cb6b882a8c166c6256ce8fa

with that change `yarn` should run successfully, then running the example file in the browser should work. if not can you send over any JS console errors that show up?

`ENTITY_MAP` that you linked to is referring to HTML entities, not Draft entities. They're there to escape any HTML entities that make it into the plain text of the editor...