Commit a8f7e87e authored by Giannis Kopanas's avatar Giannis Kopanas

Change Content of the Prosemirror content

parent 0850dee3
Pipeline #4869 passed with stages
in 4 minutes and 34 seconds
......@@ -14,21 +14,18 @@ const parser = schema => {
}
class HtmlViewer extends React.Component {
componentWillMount() {
const { value, options } = this.props
changeContentValue(value) {
const { options } = this.props
const { schema } = options
const parse = parser(schema)
options.doc = parse(value)
return parse(value)
}
render() {
const { options, className, value } = this.props
const { schema } = options
const parse = parser(schema)
options.doc = parse(value)
options.doc = this.changeContentValue(value)
return <Viewer className={className} options={options} />
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment