3 ms·
Not dumb! (Author here.) 1) It depends on what you mean by substitute. It's kind of like a contenteditable that's been implemented with React components and an
by ianstormtaylor 10y ago
Not dumb! (Author here.)
1) It depends on what you mean by substitute. It's kind of like a contenteditable that's been implemented with React components and an Immutable.js data model. It's not a drop-in replacement for contenteditable, since the APIs are different. But that is essentially what it lets you do.
2) The data is stored internally in an Immutable.js tree data model. You can convert it to JSON with the built-in `Raw` serializer. And you can define a schema with the `Html` serializer to convert it to HTML, which then you could render anywhere you want. I do this for one of my projects.