some HTML tags are being stripped out even though they have been placed in the validElements section as seen in the code above. This is quite frustrating as it is holding us back from further development. We never had this problem in previous versions using .config files.
That is exactly what I thought initially, but apparently the - sign has an effect on what attributes can be applied to the tag, not whether the tag is considered valid or not. If the tag is in there it is considered valid. You can include a section in the appsettings.config for InvalidElements as well which allows you to exclude certain tags.
Umbraco 9 appsettings.json not working?
I am trying to make changes to the validElements section here:
some HTML tags are being stripped out even though they have been placed in the validElements section as seen in the code above. This is quite frustrating as it is holding us back from further development. We never had this problem in previous versions using .config files.
HI Jason,
Which html tags are not working ?
Dave
Hi Dave,
Thanks for getting back to me about this question. So far we have noticed these tags are being stripped from the HTML upon saving
Sorry I didn't realize I had to place the tags in the code sample area, here are the tags so far.
Hi Jason,
I see all these elements in your config starting with a -
Could that be the issue ? I'm not an expert in tinyMce config.
Dave
Hi Dave,
That is exactly what I thought initially, but apparently the - sign has an effect on what attributes can be applied to the tag, not whether the tag is considered valid or not. If the tag is in there it is considered valid. You can include a section in the appsettings.config for InvalidElements as well which allows you to exclude certain tags.
is working on a reply...