When you set the value of style-src to 'self', ContentTools fails to apply some styles. This comes from using node.setAttribute("style", …) instead of node.style.attrubute = ... as you can read here.
I think it might not be that easy because you use code like this:
When you set the value of style-src to 'self', ContentTools fails to apply some styles. This comes from using
node.setAttribute("style", …)
instead ofnode.style.attrubute = ...
as you can read here.I think it might not be that easy because you use code like this:
But it should be possible to store the styles as a map instead and to something like:
I really would appreciate if you could implement this.