Answers.Body: <p>UPDATE:
  A fix for multisites and Aegir setups will come out in CiviCRM 4.7.21.
  See <a href="https://issues.civicrm.org/jira/browse/CRM-19303" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-19303</a></p>
  
  <p>After much work we managed to solve this. It was definitely a multisite / Aegir issue.</p>
  
  <p>We had to go through some hoops and down some rabbit holes but you can find our solution detailed here: <a href="https://civicrm.stackexchange.com/questions/17355/is-this-a-bug-civicrm-files-variable?noredirect=1&amp;lq=1">Solved: Is this a bug - [civicrm.files] variable</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-01T10:15:37.957Z
Answers.LastActivityDate: 2017-07-04T15:39:43.067Z
Answers.LastEditDate: 2017-07-04T15:39:43.067Z
Answers.UserDisplayName: Davy Ivins
Body: <p>How do I set mailings to allow all tags? I'm using the latest D7 and Civi and have 
  tried setting this via the GUI, but the editor still filters the code :-(</p>
  
  <p>Below is the generated crm-ckeditor-civimail.js file (in files/civicrm/persist.):</p>
  
  <pre><code>/**
   * CKEditor config file auto-generated by CiviCRM (2017-02-13 20:10:38).
   *
   * Note: This file will be overwritten if settings are modified at:
   * @link http://ir.association.works/civicrm/admin/ckeditor
   */
  CKEDITOR.editorConfig = function( config ) {
      config.toolbarGroups = [
          { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
          { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
          { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
          { name: 'forms', groups: [ 'forms' ] },
          '/',
          { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
          { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
          { name: 'links', groups: [ 'links' ] },
          { name: 'insert', groups: [ 'insert' ] },
          '/',
          { name: 'styles', groups: [ 'styles' ] },
          { name: 'colors', groups: [ 'colors' ] },
          { name: 'tools', groups: [ 'tools' ] },
          { name: 'others', groups: [ 'others' ] },
          { name: 'about', groups: [ 'about' ] }
      ];
  
      config.skin = "moono";
  
      config.allowedContent = true;
  }; 
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-14T16:12:13.913Z
Comments.Text: The following doc leads me to believe your config.allowedContent = true; is actually disabling the ckeditor filter: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent . Perhaps there is also another filter civiMail is employing on save? It's also pretty likely in my experience that the email clients you're mailing will strip tags that fall outside of these defaults anyways... so i'd check on that first if you haven't already.
Comments.UserDisplayName: Eli Lisseck
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-15T19:40:36.373Z
Comments.Text: Hi Eli - that's exactly what I need (to disable the filter) so that no tags get stripped. But that's not what is happening. The Civi sandbox demo has config.allowedContent = true; and that works as expected. But on my sites it refuses to play along. I'm running on an Aegir setup and have asked my host to see if they can figure it out. Perhaps its a glitch with Aegir
Comments.UserDisplayName: Davy Ivins
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-02-17T12:48:33.040Z
Comments.Text: After some investigation by my Aegir hosting provider it seems the problem may be related to the multisite file structure. I'll report back if we find a fix.
Comments.UserDisplayName: Davy Ivins
Tags: <civimail>
Title: Solved: How do I allow all tags in CKeditor
ThreadText: # Solved: How do I allow all tags in CKeditor
  
  (Asked by: username_0 on 2017-02-13)
  
  How do I set mailings to allow all tags? I'm using the latest D7 and Civi and have
  tried setting this via the GUI, but the editor still filters the code :-(
  
  Below is the generated crm-ckeditor-civimail.js file (in files/civicrm/persist.):
  
  ```
  /**
   * CKEditor config file auto-generated by CiviCRM (2017-02-13 20:10:38).
   *
   * Note: This file will be overwritten if settings are modified at:
   * @link http://ir.association.works/civicrm/admin/ckeditor
   */
  CKEDITOR.editorConfig = function( config ) {
      config.toolbarGroups = [
          { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
          { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
          { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
          { name: 'forms', groups: [ 'forms' ] },
          '/',
          { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
          { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
          { name: 'links', groups: [ 'links' ] },
          { name: 'insert', groups: [ 'insert' ] },
          '/',
          { name: 'styles', groups: [ 'styles' ] },
          { name: 'colors', groups: [ 'colors' ] },
          { name: 'tools', groups: [ 'tools' ] },
          { name: 'others', groups: [ 'others' ] },
          { name: 'about', groups: [ 'about' ] }
      ];
  
      config.skin = "moono";
  
      config.allowedContent = true;
  }; 
  
  ```
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: The following doc leads me to believe your config.allowedContent = true; is actually disabling the ckeditor filter: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent . Perhaps there is also another filter civiMail is employing on save? It's also pretty likely in my experience that the email clients you're mailing will strip tags that fall outside of these defaults anyways... so i'd check on that first if you haven't already.  
  > **username_0**: Hi Eli - that's exactly what I need (to disable the filter) so that no tags get stripped. But that's not what is happening. The Civi sandbox demo has config.allowedContent = true; and that works as expected. But on my sites it refuses to play along. I'm running on an Aegir setup and have asked my host to see if they can figure it out. Perhaps its a glitch with Aegir  
  > **username_0**: After some investigation by my Aegir hosting provider it seems the problem may be related to the multisite file structure. I'll report back if we find a fix.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-03-01. Score: 1
  
  UPDATE:
  A fix for multisites and Aegir setups will come out in CiviCRM 4.7.21.
  See <https://issues.civicrm.org/jira/browse/CRM-19303>
  
  After much work we managed to solve this. It was definitely a multisite / Aegir issue.
  
  We had to go through some hoops and down some rabbit holes but you can find our solution detailed here: [Solved: Is this a bug - [civicrm.files] variable](https://civicrm.stackexchange.com/questions/17355/is-this-a-bug-civicrm-files-variable?noredirect=1&lq=1)
  
  
  ---
  
  