Thank you for clarifying.
HtmlEditor is quite a specific component. It uses an iframe component. CSS from an iframe's parent page are not being applied to that iframe. It is a limitation/design of HTML/CSS.
http://stackoverflow.com/questions/2...-css-to-iframe
That is not a limitation/design of Ext.NET or ExtJS. Also it is not a difference between Ext.NET v1 (ExtJS 3) and Ext.NET v3 (ExtJS 5). HtmlEditor uses an iframe in both. For example, the border styles are not applied in v1 as well. Though, "background-color" and "color" are being applied due to the same JavaScript thing in ExtJS sources that I suggested to you. As for ExtJS 5 I see the same/similar code there, but something else should be changed somewhere to get it working. I didn't investigate it in greater details, because a solution will be limited to these rules anyways:
this.el.getStyles('font-size', 'font-family', 'background-image', 'background-repeat', 'background-color', 'color');
So, I decided to provide you with a solution how to apply any rule.
I agree it would be great to avoid this JavaScript solution. At least, make that solution more general without having to specify exact CSS rules in JavaScript code. There are some suggestions in the StackOverflow discussion that I mentioned above. Seems a possible solution could be defining those required HtmlEditor styling rules (which is going to be applied on its iframe) in a separate .css file. Then attach that .css file to iframe appending a
<link>
tag into iframe's
<head>
.
Based on my experience so far, I'm inclined to believe that some controls would be difficult to stylize the conventional way and client side workarounds may be necessary.
Please clarify what other controls rather than HtmlEditor?
Well, I can say that sometimes styling are being hardcoded in JavaScript for various reasons. Though, I would estimate it as, maybe, 5% of overall styling and it is also pretty unlikely these hardcoded styles are going to be customized ever. Yes, there might be issues (especially, with HtmlEditor (though, again, it is not a limitation of Ext.NET or ExtJS)), but personally I consider Ext.NET and ExtJS as very convenient to customize via regular CSS:) If any issues, we are happy to assist.