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.

19 lines (14 loc) 371 B
import { Component, ContainerEditor } from 'substance' class TestContainerComponent extends Component { render($$) { var el = $$('div').addClass('sc-container') el.append( $$(ContainerEditor, { node: this.props.node }).ref('editor') ) return el } } TestContainerComponent.fullWidth = true export default TestContainerComponent