0
我现在就从Draft.js开始,所以我可能会错过这里的一些重要的东西。但正如标题所说:我想获得编辑器生成的完整html。现在,我有:Draft.js-get编辑器内容为html
this.state.editor.getCurrentContent() // Object ContentState
this.state.editor.getCurrentContent().getPlainText() // no html tags
谢谢,这到目前为止......我目前的应用程序是有点线,服务器端渲染将是最好的解决方案,但是,好吧,这可能发生在遥远的未来...也许我必须使用另一个编辑,但现在,这是完美的! – philipp