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 (15 loc) 392 B
import Component from './Component' class UnsupportedNodeComponent extends Component { render($$) { return $$('pre') .addClass('content-node unsupported') .attr({ 'data-id': this.props.node.id, contentEditable: false }) .append( JSON.stringify(this.props.node.properties, null, 2) ) } } export default UnsupportedNodeComponent