title: How to post custom html tags with tinymce
body: <p>I am trying to insert some custom html with a custom button, which works fine like this:</p>
  <pre><code>editor.selection.setContent('&lt;a href=&quot;example.com&quot;&gt;Custom Link&lt;/a&gt;
  </code></pre>
  <p>But when you try to insert a custom tag like, it does nothing when you click the custom button:</p>
  <pre><code>editor.selection.setContent('&lt;custom-link href=&quot;example.com&quot;&gt;Custom Link&lt;/custom-link&gt;
  </code></pre>
  <p>I think the issue is that tinymce is cleaning up my custom tag (<a href="https://www.tiny.cloud/docs-3x/api/class_tinymce.Editor.html/#setcontent" rel="nofollow noreferrer">docs</a>).</p>
  <p>I can also see in the docs above that you can pass setContent an args object, but I can't see what args you can actually pass.</p>
  <p>Basically - how can I get tinymce to allow me to insert custom html tags? I think it might be with an argument passed in, but I am not sure.</p>