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 {
}
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
......
......@@ -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
}
......
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