From f473d46cf168941a42f9f3cfa3e15d424db7512a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 4 Feb 2014 12:45:56 -0800 Subject: [PATCH] :memo: doc EditorView::setPlaceholderText --- src/editor-view.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editor-view.coffee b/src/editor-view.coffee index 37597bd2e..1279d8443 100644 --- a/src/editor-view.coffee +++ b/src/editor-view.coffee @@ -300,6 +300,11 @@ class EditorView extends View @showIndentGuide = showIndentGuide @resetDisplay() + # Set the text to appear in the editor when it is empty. + # + # This only affects mini editors. + # + # * placeholderText: A {String} of text to display when empty. setPlaceholderText: (placeholderText) -> return unless @mini @placeholderText = placeholderText