+ Hi there {{First Name}}
,
+
+ Welcome to the Quick Replies plugin! Here you can create email templates with
+ {{variable regions}}
that you can quickly fill in
+ before you send your email.
+
+++ Just wrap text in
+{{double brackets}}
to create a variable! You + can add{{variables}}
inside areas of formatted + text too. +
+ When you send your message, the highlighting is always removed so the recipient + never sees it. +
+ Enjoy! +
++ - Nylas Team +
diff --git a/internal_packages/composer-templates/assets/Welcome to Templates.html b/internal_packages/composer-templates/assets/Welcome to Templates.html deleted file mode 100644 index 3cb97efab..000000000 --- a/internal_packages/composer-templates/assets/Welcome to Templates.html +++ /dev/null @@ -1,20 +0,0 @@ -
- Hi there First Name
,
-
- Welcome to the templates package! Templates live in the ~/.nylas/templates - directory on your computer. Each template is an HTML file - the name of the - file is the name of the template, and it's contents are the default message body. -
-
- If you include HTML <code> tags in your template, you can create
- regions that you can jump between and fill easily. Check out the source of
- the template for a super awesome
example!
-
- Give <code> tags the `var` class to mark them as template regions. Add - the `empty` class to make them dark yellow. When you send your message, <code> - tags are always stripped so the recipient never sees any highlighting. -
- - Nylas Team -
diff --git a/internal_packages/composer-templates/lib/preferences-templates.cjsx b/internal_packages/composer-templates/lib/preferences-templates.cjsx index 0f7024434..236486646 100644 --- a/internal_packages/composer-templates/lib/preferences-templates.cjsx +++ b/internal_packages/composer-templates/lib/preferences-templates.cjsx @@ -13,7 +13,7 @@ class PreferencesTemplates extends React.Component {templates, selectedTemplate, selectedTemplateName} = @_getStateFromStores() @state = editAsHTML: false - editState: null + editState: if templates.length==0 then "new" else null templates: templates selectedTemplate: selectedTemplate selectedTemplateName: selectedTemplateName @@ -108,14 +108,14 @@ class PreferencesTemplates extends React.Component _renderEditableTemplate: ->