YangNing Posted April 13, 2015 Posted April 13, 2015 I set the fonts of TUniHTMLMemo: function afterCreate(sender) { Ext.apply(sender,{fontFamilies:["宋体","黑体"]}); } But, the default font is "helvetica".
Sherzod Posted April 13, 2015 Posted April 13, 2015 Hi, One of the solutions, try (may help): works correctly, if at the beginning uniHTMLMemo is empty! function beforeInit(sender) { sender.listeners = { initialize: function(field) { field.relayCmd('fontname', 'verdana'); //the font name must be all lowercase } } } Best regards!
YangNing Posted April 18, 2015 Author Posted April 18, 2015 function afterrender(sender, eOpts) { sender.textareaEl.setStyle("font-family","宋体"); } it works correctly.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now