![]() |
|
filtered attributes in news - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: filtered attributes in news (/thread-13031.html) |
filtered attributes in news - vincent3569 - 2017-10-18 Hi, sometimes, I don't use tinyMCE (I use only html editor) to admin news content. although tags are allowed, their contents are sometimes filtered. filtered attributes in news - vincent3569 - 2017-10-18 this HTML code: become
this matter doesn't append whis tinyMCE. filtered attributes in news - acrylian - 2017-10-18 You have to explicitly allow those tags (actually elements) and all attributes you wish to use. That's independent if you use TinyMCE or not. Generally you should avoid inlines CSS as much as you can. It causes frequently headaches because it has priority over rules in CSS files. If you need a lot of similar styling frequently, better add classes to your css file. filtered attributes in news - vincent3569 - 2017-10-18 I desagree, it depends if you use TinyMCE or not. When I am using it, there is not filter as above. When I use TinyMCE, the css rules in style attribute are not filtered. btw, the relevant allowed tags are: how can you explain that and other, I wrote this: but nothing more happened. filtered attributes in news - acrylian - 2017-10-18
My recommendation of avoiding inline css is a general one and not exactly related to TinyMCE or not TinyMCE. It is a pain to override such styles whereever they are used (Yes, Zenphoto has a lot of this as well especially on the backend. One of the many tiny things we want to improve). Ok, forgive me that I cannot remember everything offhand. I would have to look into the code but I think you cannot further nest these definitions. So having Remember that TinyMCE does a bit of his own filtering and escaping that may help here. I cannot answer right now. filtered attributes in news - vincent3569 - 2017-10-25 Did you have a look at the issue? filtered attributes in news - acrylian - 2017-10-25 No ticket needed as I have it on my long list of things to look after. Just didn't have time as I am working on a dozen things at the time. |