Skip to content
Snippets Groups Projects
IsolatedNoteComponent.js 558 B
Newer Older
import { IsolatedNodeComponent } from 'substance'
import TextPropertyEditor from './TextPropertyEditor'
class IsolatedNoteComponent extends IsolatedNodeComponent {
    let el = $$('div')
      .addClass('sc-entity')
      .attr('data-id', this.props.node.id)
      .append(
        $$(TextPropertyEditor, {
          disabled: this.context.editor.props.disabled,
          multiLine: false,
          path: [this.props.node.id, 'content'],
          tagName: 'p'
        }
chris's avatar
chris committed
      ))

export default IsolatedNoteComponent