diff --git a/app/components/SimpleEditor/elements/isolatedNote/IsolatedNoteComponent.js b/app/components/SimpleEditor/elements/isolatedNote/IsolatedNoteComponent.js index 743555aab11407bb7ba1edeca484e757b346d2c0..8f9a5cc53871708ae1053052bfe4d9779c5a0f1d 100644 --- a/app/components/SimpleEditor/elements/isolatedNote/IsolatedNoteComponent.js +++ b/app/components/SimpleEditor/elements/isolatedNote/IsolatedNoteComponent.js @@ -9,13 +9,15 @@ class IsolatedNoteComponent extends IsolatedNodeComponent { // is there a better way than rendering a text property editor??? // review ref name // do we need a ref ?? + const editing = (this.context.editor.props.disabled) ? 'selection' : 'full' + let el = $$('div') .addClass('sc-entity') .attr('data-id', this.props.node.id) .append( $$(TextPropertyEditor, { - disabled: this.context.editor.props.disabled, multiLine: false, + editing: editing, path: [this.props.node.id, 'content'], tagName: 'p' } diff --git a/app/components/SimpleEditor/notesEditor/NotesEditor.js b/app/components/SimpleEditor/notesEditor/NotesEditor.js index 209cca0a6d3ecfd46894e382bb3ce2cf7042c7bc..fef30781adffbeb1d4d9e4e02e78e2e0cd079acc 100644 --- a/app/components/SimpleEditor/notesEditor/NotesEditor.js +++ b/app/components/SimpleEditor/notesEditor/NotesEditor.js @@ -67,7 +67,7 @@ class NotesEditor extends ProseEditor { _renderEditor ($$) { const hasIsolatedNotes = this.getIsolatedNodes() - const disabled = (isEmpty(hasIsolatedNotes)) ? true : this.props.disabled + const disabled = (isEmpty(hasIsolatedNotes)) return $$(ContainerEditor, { book: this.props.book,