<object> tags removed from twig template #6733
Labels
bug
Issues or PR's relating to bugs
builder-legacy
Anything related to the legacy email or landing page builders
What type of report is this:
| Bug report? |
Description:
I created a custom mautic theme, based off the
blank
theme that ships with mautic. In the custom theme's.twig
files, I added an<object>
tag in both the header and footer, which contained SVG logos—this way, I get the benefits of caching the SVG while also allowing me to do CSS manipulations to the SVG.When I tested my theme out the first time, I noticed the logos were not showing. On further inspection, the
<object>
tags had been completely removed!I got to googling for answers/solutions. At first I thought I'd just need to add
object
to thehtmlAllowTags
found in/app/bundles/CoreBundle/Assets/js/libraries/froala/froala_editor.js
. On further inspection, I realized it already has theobject
tag listed.Next thought was maybe the
<object>
's attributes were the issue and would need to be added tohtmlAllowedAttrs
in thefroala_editor.js
file. Nope. It already had the only two attributes my<object>
tags had:type
anddata
. So neither one of those seem to be causing the issue—and I'm at a loss as to why the WYSIWIG is allowed to mess with.twig
template code anyway.If a bug:
| Mautic version | 2.14.2
| PHP version | 7.1.8
Steps to reproduce:
<object type="image/svg+xml" data="https://s.cdpn.io/3/kiwi.svg"></object>
<object>
tag to.<object>
tag gets striped out.Log errors:
None
The text was updated successfully, but these errors were encountered: