Answers.Body: <p>Changing from TinyMCE for template editing to CKEditor solved this problem. Verified that switching back to TinyMCE causes style tags to be stripped.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T04:05:46.393Z
Answers.LastActivityDate: 2016-10-12T04:05:46.393Z
Answers.UserDisplayName: Lars SG
Body: <p>Style tags cannot be saved in message templates and have in fact been stripped from current templates. We use a number of templates based on the Single Column Responsive Sample Template. In the last month, all the templates that used to contain a style tag that made the templates responsive have been stripped from the templates, including the sample template. Any attempts to re-add the style tag (or any style tag at all) seem to save fine, but on viewing do not have the style tag. Other changes are saved properly. I think this is since upgrading to 4.6.22, but am not sure of this.</p>
  
  <p>Style tags can still be saved in CiviMail directly, just not in the templates.</p>
  
  <p>CiviCRM 4.6.22 &amp; Drupal 7.50</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-11T21:01:28.590Z
Comments.Text: I don't have a good answer, as this seems to be working fine for us in civiCRM 4.6.4 - but it's probably relevant to post which WYSIWYG Editor you're using plus it's version, given the nature of the issue. I did start seeing some certain tags getting stripped and jammed into <style> in unexpected ways when we upgraded to a new version of the full ckEditor.
Comments.UserDisplayName: Eli Lisseck
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-11T21:13:59.020Z
Comments.Text: We are using CKEditor.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-12T04:04:58.463Z
Comments.Text: This was incorrect, we use CKEditor for CiviMail, but TinyMCE for template editing.
Comments.UserDisplayName: Lars SG
Tags: <civimail><message-templates><templates>
Title: Email templates stripped of style tags
ThreadText: # Email templates stripped of style tags
  
  (Asked by: username_0 on 2016-10-11)
  
  Style tags cannot be saved in message templates and have in fact been stripped from current templates. We use a number of templates based on the Single Column Responsive Sample Template. In the last month, all the templates that used to contain a style tag that made the templates responsive have been stripped from the templates, including the sample template. Any attempts to re-add the style tag (or any style tag at all) seem to save fine, but on viewing do not have the style tag. Other changes are saved properly. I think this is since upgrading to 4.6.22, but am not sure of this.
  
  Style tags can still be saved in CiviMail directly, just not in the templates.
  
  CiviCRM 4.6.22 & Drupal 7.50
  
  **Tags:** civimail, message-templates, templates
  
  > **Comments:**
  > **username_1**: I don't have a good answer, as this seems to be working fine for us in civiCRM 4.6.4 - but it's probably relevant to post which WYSIWYG Editor you're using plus it's version, given the nature of the issue. I did start seeing some certain tags getting stripped and jammed into <style> in unexpected ways when we upgraded to a new version of the full ckEditor.  
  > **username_0**: We are using CKEditor.  
  > **username_0**: This was incorrect, we use CKEditor for CiviMail, but TinyMCE for template editing.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-10-12. Score: 2
  
  Changing from TinyMCE for template editing to CKEditor solved this problem. Verified that switching back to TinyMCE causes style tags to be stripped.
  
  
  ---
  
  