diff --git a/src/editor.coffee b/src/editor.coffee index eccf9d6cf..6da743d08 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -643,7 +643,8 @@ class Editor extends Model # text - A {String} representing the text to insert. # options - See {Selection::insertText}. # - # Returns a {Boolean} indicating whether or not the text was inserted. + # Returns a {Range} when the text has been inserted + # Returns a {Bool} false when the text has not been inserted insertText: (text, options={}) -> willInsert = true cancel = -> willInsert = false