From fc441ef5e2ea88db16f17de3d0d2668e237d9ecc Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 30 Jul 2014 15:30:21 -0700 Subject: [PATCH] :memo: fix return doc --- src/editor.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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