📝 doc EditorView::setPlaceholderText

This commit is contained in:
Kevin Sawicki
2014-02-04 12:45:56 -08:00
parent 061599554e
commit f473d46cf1

View File

@@ -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