erich.wanker Posted April 29, 2016 Share Posted April 29, 2016 Hello, the UniDBHTMLMemo1 should only show Font "Roboto" and "Arial" HOW ca i do this? ThanX Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 29, 2016 Share Posted April 29, 2016 Hi Erich, For now can you try this?: UniDBHTMLMemo1->ClientEvents->ExtEvents: function afterrender(sender, eOpts) { if (Ext.get(sender.el.select('select').elements[0]) && Ext.get(sender.el.select('select').elements[0]).select('option').elements[2]) { Ext.get(sender.el.select('select').elements[0]).select('option').elements[2].remove() } } UniDBHTMLMemo1->ClientEvents->UniEvents: function beforeInit(sender, config) { config.fontFamilies = ['Arial', 'Roboto']; sender.listeners = { initialize: function(fld, opts) { var fontSelector = fld.down('#fontSelect'), el = fontSelector.getEl(), select = el.down('select').dom; doc = Ext.get(fld.getEditorBody()); select.value = 'arial'; doc.setStyle({fontFamily: 'arial, roboto'}); } } } Best regards. 1 Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted May 2, 2016 Author Share Posted May 2, 2016 :-) THANX Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted January 23, 2018 Author Share Posted January 23, 2018 Hello, if i use the solution, i can select a text and give him the "Roboto"-Font (which i inkluded in my unigui-Application ... on a uniForm . i can give a Unilabel the "Roboto" font and i see at runtime the right font) But the editor shows allways the text as "times new Roman" fonttype - although the text is marked as "roboto? .. the source-code-viewer of uniHtmlMemo shows: <font face="roboto">this is a test text </font> Any ideas? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23, 2018 Share Posted January 23, 2018 Hi Erich, Ok, we will check this behavior Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23, 2018 Share Posted January 23, 2018 Erich, Seems I couldn't reproduce this behavior, can you make a simple testcase for this ?! Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted January 23, 2018 Author Share Posted January 23, 2018 Hi Delphi Developer :-) i found the reason - but did not know how to solve it .... If i add with chrome developer tools this line [<link rel=stylesheet href="/files/css/sec.css" /> ] to the Iframe - section "head" of the UniHTMLMemo -> it works But how can i add this line to the iframe of UniHTMLMemo > Head-section ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.