Nov 26, 2013, 12:56 AM
[CLOSED] Setting a theme for HtmlEditor on the client
Hi,
I've been sifting through various threads on this forum trying to find the pattern to apply a standard theme to HtmlEditor control on the client. So far, no luck. When I use
There's another approach that I've found out there:
I've been sifting through various threads on this forum trying to find the pattern to apply a standard theme to HtmlEditor control on the client. So far, no luck. When I use
Ext.net.ResourceMgr.setTheme(result, skinName);
on the page, it doesn't affect the HtmlEditor style, probably because it renders an iframe element on the page. There's another approach that I've found out there:
var editorBody = htmlEditor.getEditorBody();
var styles = {};
styles["color"] = "#696969";
Ext.DomHelper.applyStyles(editorBody, styles);
Although it works, it requires setting all the CSS rules locally instead of simply applying a class. Also, I'm not sure why HtmlEditor has to be treated differently than any other controls on the page. Am I missing anything here? Please suggest the proper method to deal with the issue at hand.
Last edited by Baidaly; Nov 27, 2013 at 12:17 PM.
Reason: [CLOSED]