Skip to content

Commit

Permalink
editor.js : Add new authoring template.
Browse files Browse the repository at this point in the history
This would help people to
write good blog posts and how to
structure them

Fixes publiclab#988
  • Loading branch information
wimpykid26 authored and jywarren committed Nov 23, 2016
1 parent 2daeb50 commit 451b278
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ $E = {
else $E.textarea.val($E.templates[template])
},
templates: {
'blog': "###The beginning\n\n###What we did\n\n###Why it matters\n\n###How can you help",
'default': "###What I want to do\n\n###My attempt and results\n\n###Questions and next steps\n\n###Why I'm interested",
'support': "###Details about the problem\n\n###A photo or screenshot of the setup",
'event': "###Event details\n\nWhen, where, what\n\n###Background\n\nWho, why",
Expand Down

0 comments on commit 451b278

Please sign in to comment.