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 system. It is developed to power our online editing platform [Substance](http://substance.io).

10 lines (8 loc) 303 B
import { Component } from '../dom' import { renderProperty } from '../editor' export default class ParagraphComponent extends Component { render () { const node = this.props.node return renderProperty(this, node.getDocument(), [node.id, 'content'], this.props).addClass('sc-paragraph') } }