I know this is probably something really simple that I'm missing, but I'm just trying to get RTE to allow me to add <meta> content into it (for itemprop data etc).
What i've done so far is add "meta[*]" into the <validElements> tag in tinyMCEConfig.config. This didn't work. I also tried naming the tags rather than wildcarding, this didn't work either.
I have added the <TidyEditorContent>False</TidyEditorContent> into the umbracoSettings.config file (though I understand this is the default setting anyway?) but that doesn't appear to have helped.
I then added a <config key="extended_valid_elements">meta[*]</config> to tinyMCEConfig.config. This didn't work and had the added bonus of stripping out anything that had been added to any <div> tag (such as id, class etc).
If I add <config key="extended_valid_elements">meta[*],span[*],div[*]</config> then it strips everything out bar the <span> tags, but does allow <span itemprop> etc
Currently driving me crazy trying to figure out what's going on!
Meta tags in tinyMCE
I know this is probably something really simple that I'm missing, but I'm just trying to get RTE to allow me to add
<meta>
content into it (for itemprop data etc).What i've done so far is add "meta[*]" into the
<validElements>
tag in tinyMCEConfig.config. This didn't work. I also tried naming the tags rather than wildcarding, this didn't work either.I have added the
<TidyEditorContent>False</TidyEditorContent>
into the umbracoSettings.config file (though I understand this is the default setting anyway?) but that doesn't appear to have helped.I then added a
<config key="extended_valid_elements">meta[*]</config>
to tinyMCEConfig.config. This didn't work and had the added bonus of stripping out anything that had been added to any<div>
tag (such as id, class etc).If I add
<config key="extended_valid_elements">meta[*],span[*],div[*]</config>
then it strips everything out bar the<span>
tags, but does allow<span itemprop>
etcCurrently driving me crazy trying to figure out what's going on!
is working on a reply...