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

20 lines (17 loc) 506 B
import { IsolatedInlineNodeComponent, TextPropertyEditor } from 'substance' export default class TestInlineNodeComponent extends IsolatedInlineNodeComponent { getClassNames () { return 'sc-test-inline sc-inline-node' } renderContent ($$) { const node = this.props.node return $$('span').append( $$(TextPropertyEditor, { tagName: 'span', path: [node.id, 'content'], withoutBreak: true, disabled: this.isDisabled() }).ref('editor') ) } }