substance
Version:
Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).
17 lines (14 loc) • 335 B
JavaScript
import { Component, ContainerEditor } from 'substance'
export default class TestContainerEditor extends Component {
getChildContext () {
return this.props.context
}
render ($$) {
return $$('div').append(
$$(ContainerEditor, {
node: this.props.node,
commands: []
}).ref('editor')
)
}
}