diff --git a/src/js/textmode.js b/src/js/textmode.js index 28de1fd..11910db 100644 --- a/src/js/textmode.js +++ b/src/js/textmode.js @@ -206,7 +206,7 @@ textmode.create = function (container, options) { var emptyNode = {}; var isReadOnly = (this.options.onEditable - && typeof(this.options.onEditable === 'Function') + && typeof(this.options.onEditable === 'function') && !this.options.onEditable(emptyNode)); this.textarea.readOnly = isReadOnly;