UNPKG

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 systems.

20 lines (15 loc) 355 B
import { Component, ContainerEditor } from 'substance' class TestContainerEditor extends Component { getChildContext() { return this.props.context } render($$) { return $$('div').append( $$(ContainerEditor, { node: this.props.node, commands: [] }).ref('editor') ) } } export default TestContainerEditor