diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 13b8a0bfa..3cdd363a7 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -353,7 +353,8 @@ class TextEditor extends Model cursor.setShowCursorOnSelection(value) for cursor in @getCursors() else - throw new TypeError("Invalid TextEditor parameter: '#{param}'") + if param isnt 'ref' and param isnt 'key' + throw new TypeError("Invalid TextEditor parameter: '#{param}'") @displayLayer.reset(displayLayerParams)