I have a strange issue going on with TinyMCE. It keeps adding ="" after I type download in my HTML, but I don't want that. This is the code I am trying to enter when viewing the source code...
<a id="id1" href="../images/charts/Demo.png" download>
<img class="download-center" src="../images/Download.png" alt="Download" width="16" height="16" loading="lazy">
</a>
But after I save, reload then view the source code, I see this...
<a id="id1" href="../images/charts/Demo.png" download="">
<img class="download-center" src="../images/Download.png" alt="Download" width="16" height="16" loading="lazy">
</a>
The code is loaded from my MySQL database into the editor, where I can make any edits before saving the code again. I have no idea why it is adding the ="", is there a way to prevent this?
Can be due to how it processes HTML attributes. Some editors may add it automatically to ensure the code is compatible with other editors where attributes are expected to be given explicit values.
Try to see if there's a way to configure it, but read the docs to make sure of what you're doing.