Skip to content

Commit

Permalink
Change message for when editor not selected
Browse files Browse the repository at this point in the history
"Please select your Text Editor view to render a
preview of your code"

See discussion at
#41 (comment)
  • Loading branch information
Glavin001 committed Jun 15, 2015
1 parent 4f58468 commit 36e7dcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/preview-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class PreviewView extends HTMLElement
@editorContents = $(@textEditor)

# Add Text Editor
# Placeholder = Please type in a Text Editor to render preview
@appendChild(@textEditor)

# Create container for Previewing Rendered HTML
Expand Down Expand Up @@ -223,7 +222,7 @@ class PreviewView extends HTMLElement
cEditor = @lastEditor
if not cEditor?
# cEditor not defined
@showError({message:"Please type a Text Editor to render preview"})
@showError({message:"Please select your Text Editor view to render a preview of your code"})
else
# Source Code text
text = cEditor.getText()
Expand Down

0 comments on commit 36e7dcd

Please sign in to comment.