diff --git a/app/components/SimpleEditor/elements/note/EditNoteTool.js b/app/components/SimpleEditor/elements/note/EditNoteTool.js index 5f74ba65c7790ea1d01fe1dcb61b85cfe6692cdc..34a4777823249f0156bf84cbd5bfe606213f7fba 100644 --- a/app/components/SimpleEditor/elements/note/EditNoteTool.js +++ b/app/components/SimpleEditor/elements/note/EditNoteTool.js @@ -26,7 +26,7 @@ class EditNoteTool extends Tool { } didMount () { - this.context.editorSession.onUpdate('', this.diabelTools, this) + this.context.editorSession.onUpdate('', this.disableTools, this) } _initMiniEditor () { @@ -50,7 +50,7 @@ class EditNoteTool extends Tool { return editorSession } - diabelTools () { + disableTools () { const selected = this.getSelection() if (!selected.node) return const commandStates = this.context.commandManager.commandStates diff --git a/app/components/SimpleEditor/elements/note/NoteTool.js b/app/components/SimpleEditor/elements/note/NoteTool.js index 99ad23841d233611395de75936f6afafa8ecedd8..b5d712753aa16a46ff3241ab7c18c3709066a9e8 100644 --- a/app/components/SimpleEditor/elements/note/NoteTool.js +++ b/app/components/SimpleEditor/elements/note/NoteTool.js @@ -3,8 +3,11 @@ import { AnnotationTool } from 'substance' class NoteTool extends AnnotationTool { renderButton ($$) { const el = super.renderButton($$) + + // TODO -- either delete or re-introduce // const readOnly = this.isSurfaceReadOnly() // if (readOnly === true) el.attr('disabled', 'true') + return el }