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).
18 lines (15 loc) • 411 B
JavaScript
import { Component, ContainerEditor } from 'substance'
export default class TestContainerComponent extends Component {
render ($$) {
let node = this.props.node
let el = $$('div').addClass('sc-container')
el.append(
$$(ContainerEditor, {
name: node.id,
containerPath: node.getPath()
}).ref('editor')
)
return el
}
static get fullWidth () { return true }
}