Skip to content
Snippets Groups Projects
Commit 4bde4817 authored by john's avatar john
Browse files

fix typos

parent 2bcdb9d2
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ class EditNoteTool extends Tool { ...@@ -26,7 +26,7 @@ class EditNoteTool extends Tool {
} }
didMount () { didMount () {
this.context.editorSession.onUpdate('', this.diabelTools, this) this.context.editorSession.onUpdate('', this.disableTools, this)
} }
_initMiniEditor () { _initMiniEditor () {
...@@ -50,7 +50,7 @@ class EditNoteTool extends Tool { ...@@ -50,7 +50,7 @@ class EditNoteTool extends Tool {
return editorSession return editorSession
} }
diabelTools () { disableTools () {
const selected = this.getSelection() const selected = this.getSelection()
if (!selected.node) return if (!selected.node) return
const commandStates = this.context.commandManager.commandStates const commandStates = this.context.commandManager.commandStates
......
...@@ -3,8 +3,11 @@ import { AnnotationTool } from 'substance' ...@@ -3,8 +3,11 @@ import { AnnotationTool } from 'substance'
class NoteTool extends AnnotationTool { class NoteTool extends AnnotationTool {
renderButton ($$) { renderButton ($$) {
const el = super.renderButton($$) const el = super.renderButton($$)
// TODO -- either delete or re-introduce
// const readOnly = this.isSurfaceReadOnly() // const readOnly = this.isSurfaceReadOnly()
// if (readOnly === true) el.attr('disabled', 'true') // if (readOnly === true) el.attr('disabled', 'true')
return el return el
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment