Body: <p>I'm trying to use anchor links in Mosaico mails. (Yes I know they aren't universally supported in mail clients, but using them wasn't my decision :-)</p>
  <p>According to <a href="https://civicrm.stackexchange.com/questions/23052/how-can-i-set-up-anchors-in-mosaico-mailing">this post</a> this should be possible, entering the <code>&lt;a name=&quot;&quot;&gt;</code> tag manually in code edit view. There are <a href="https://civicrm.stackexchange.com/questions/31507/using-internal-anchor-links-in-mosaico-emails">other posts discussing bugfixes for tracking issues</a> with anchor links, so I thought they would be supported.</p>
  <p>But it seems my Mosaico editor is stripping the <code>&lt;a name=&quot;&quot;&gt;</code> tag (it disappears when saving).</p>
  <p>I've not found a Civicrm config setting that addresses this...I assume it must be configurable in Mosaico? But I'm also having trouble finding Mosaico documentation that discusses this.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-25T08:55:29.227Z
Comments.Text: Update: I've found the Mosaico documentation talking about templating, but I'm really hoping there's a simpler way to address this!
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-25T09:14:52.490Z
Comments.Text: If it's useful info -- seems we're using the standard versafix-1 template.
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-25T15:09:19.133Z
Comments.Text: Which version of CiviCRM and which version of Mosaico?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-26T16:28:45.183Z
Comments.Text: Drupal 9.5.3, CiviCRM 5.58.1, Mosaico 2.11.1676403645
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-26T23:49:40.713Z
Comments.Text: I'm not seeing that behaviour on the same setup, except Drupal 7 (which I don't think should make a difference). Maybe try it on dmaster.demo.civicrm.org and see if you have the same problem there?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-27T09:37:05.620Z
Comments.Text: Tested it on dmaster.demo.civicrm.org, sure enough, it works fine -- but that is with the latest Mosaico extension version 3.1.1687383640.  I guess I need to get our admin to upgrade the Mosaico extension?
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-27T09:38:19.780Z
Comments.Text: I guess next step is to can set up another test environment with the older version and confirm that an upgrade solves the problem. Thanks for the tips.
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-27T10:08:32.050Z
Comments.Text: Aaaaand I've tested on several other systems and also never saw this behavior, even with the older version.  Went back to the original system and it now seems to be working. A real head-scratcher, but for now I won't look a gift horse in the mouth.
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-28T15:24:52.350Z
Comments.Text: @minbori just a quick word of caution, the upgrade to the latest Mosaico may not be complex to implement, but might cause incompatibilities with older templates. With that being said, I really enjoy the spacing options on the new Mosaico and the ability to copy paste more than plain text.
Comments.UserDisplayName: themak
Tags: <mosaico>
Title: can't create anchor links in Mosaico -- it strips internal anchor tags?
ThreadText: # can't create anchor links in Mosaico -- it strips internal anchor tags?
  
  (Asked by: username_0 on 2023-07-25)
  
  I'm trying to use anchor links in Mosaico mails. (Yes I know they aren't universally supported in mail clients, but using them wasn't my decision :-)
  
  According to [this post](https://civicrm.stackexchange.com/questions/23052/how-can-i-set-up-anchors-in-mosaico-mailing) this should be possible, entering the `<a name="">` tag manually in code edit view. There are [other posts discussing bugfixes for tracking issues](https://civicrm.stackexchange.com/questions/31507/using-internal-anchor-links-in-mosaico-emails) with anchor links, so I thought they would be supported.
  
  But it seems my Mosaico editor is stripping the `<a name="">` tag (it disappears when saving).
  
  I've not found a Civicrm config setting that addresses this...I assume it must be configurable in Mosaico? But I'm also having trouble finding Mosaico documentation that discusses this.
  
  **Tags:** mosaico
  
  > **Comments:**
  > **username_0**: Update: I've found the Mosaico documentation talking about templating, but I'm really hoping there's a simpler way to address this!  
  > **username_0**: If it's useful info -- seems we're using the standard versafix-1 template.  
  > **username_1**: Which version of CiviCRM and which version of Mosaico?  
  > **username_0**: Drupal 9.5.3, CiviCRM 5.58.1, Mosaico 2.11.1676403645  
  > **username_1**: I'm not seeing that behaviour on the same setup, except Drupal 7 (which I don't think should make a difference). Maybe try it on dmaster.demo.civicrm.org and see if you have the same problem there?  
  > **username_0**: Tested it on dmaster.demo.civicrm.org, sure enough, it works fine -- but that is with the latest Mosaico extension version 3.1.1687383640.  I guess I need to get our admin to upgrade the Mosaico extension?  
  > **username_0**: I guess next step is to can set up another test environment with the older version and confirm that an upgrade solves the problem. Thanks for the tips.  
  > **username_0**: Aaaaand I've tested on several other systems and also never saw this behavior, even with the older version.  Went back to the original system and it now seems to be working. A real head-scratcher, but for now I won't look a gift horse in the mouth.  
  > **username_2**: @username_0 just a quick word of caution, the upgrade to the latest Mosaico may not be complex to implement, but might cause incompatibilities with older templates. With that being said, I really enjoy the spacing options on the new Mosaico and the ability to copy paste more than plain text.  
  
  ---
  
  ## 0 answers
  
  