Skip to content

Commit

Permalink
fixed whitespaces and placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
corinnaj committed Jan 23, 2017
1 parent db5947f commit f2666d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/events/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="col-lg-10">
<%= f.text_area :description, :class => 'form-control', :id => 'description', :placeholder => '', :rows => 20 %>
<script>
var placeholder = '## Subheadline \nlorem ipsum für einen absatz \n \n ## Lernziele\n* a\n* b\n* c\n\n## Hinweise\n* a\n* b\n* c';
var placeholder = '## Untertitel \nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n \n ## Lernziele\n* a\n* b\n* c\n\n## Hinweise\n* a\n* b\n* c';
$("#description").attr('placeholder', placeholder);

$("#description").focus(function(){
Expand All @@ -43,7 +43,7 @@
});
</script>
<%=f.error_span(:description) %>
Dieser Editor unterstüzt <a href="https://daringfireball.net/projects/markdown/syntax"> Markdown </a>
Dieser Editor unterstüzt <a href="https://daringfireball.net/projects/markdown/syntax">Markdown</a>
</div>
</div>

Expand Down

0 comments on commit f2666d7

Please sign in to comment.