SayeyeZohor Posted December 2, 2019 Share Posted December 2, 2019 hi 1- how to change or add CSS For uniHtmlMemo ? 2- how to change Font For uniHtmlMemo ? @Sherzod how add above css ? Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2019 Share Posted December 2, 2019 18 minutes ago, SayeyeZohor said: 2- how to change Font For uniHtmlMemo ? Hi, Have you tried searching the forum? Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 2, 2019 Author Share Posted December 2, 2019 23 minutes ago, Sherzod said: Hi, Have you tried searching the forum? yes i have'n found that ... please refer me tnx @Sherzod 1- how to change or add CSS For uniHtmlMemo ? 2- how to change Font For uniHtmlMemo ? Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2019 Share Posted December 2, 2019 http://forums.unigui.com/index.php?/topic/6651-unidbhtmlmemo1-font/ Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 2, 2019 Author Share Posted December 2, 2019 36 minutes ago, Sherzod said: http://forums.unigui.com/index.php?/topic/6651-unidbhtmlmemo1-font/ tnx 1- how to change or add CSS For uniHtmlMemo ? border, ...... Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 2, 2019 Author Share Posted December 2, 2019 39 minutes ago, Sherzod said: http://forums.unigui.com/index.php?/topic/6651-unidbhtmlmemo1-font/ i have above problam ... Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2019 Share Posted December 2, 2019 7 minutes ago, SayeyeZohor said: tnx 1- how to change or add CSS For uniHtmlMemo ? border, ...... 7 minutes ago, SayeyeZohor said: i have above problam ... Please explain in more detail. Make a simple testcase by indicating where the problem occurs. Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 2, 2019 Author Share Posted December 2, 2019 1 hour ago, Sherzod said: Please explain in more detail. Make a simple testcase by indicating where the problem occurs. Sample.rar Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2019 Share Posted December 2, 2019 1 hour ago, SayeyeZohor said: Sample.rar I will check. 1 Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 5, 2019 Author Share Posted December 5, 2019 On 12/2/2019 at 3:15 PM, Sherzod said: I will check. hello, i waiting for ... tnx Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2019 Share Posted December 5, 2019 11 minutes ago, SayeyeZohor said: i waiting for ... tnx Hello, Sorry for the late reply. Try this: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniHTMLMemo1 do JSInterface.JSAddListener('initialize', 'function(editor){'+ ' const bodyArea = editor.getEditorBody();'+ ' bodyArea.style["border"] = "1px solid";'+ ' bodyArea.style["border-radius"] = "4px";'+ ' bodyArea.style["padding"] = "12px 10px";'+ ' bodyArea.style["line-height"] = "2";'+ '}' ); end; 1 Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 5, 2019 Author Share Posted December 5, 2019 12 hours ago, Sherzod said: Hello, Sorry for the late reply. Try this: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniHTMLMemo1 do JSInterface.JSAddListener('initialize', 'function(editor){'+ ' const bodyArea = editor.getEditorBody();'+ ' bodyArea.style["border"] = "1px solid";'+ ' bodyArea.style["border-radius"] = "4px";'+ ' bodyArea.style["padding"] = "12px 10px";'+ ' bodyArea.style["line-height"] = "2";'+ '}' ); end; tnx how to add css to unimemo or other component? @Sherzod Link to comment Share on other sites More sharing options...
Sherzod Posted December 6, 2019 Share Posted December 6, 2019 9 hours ago, SayeyeZohor said: how to add css to unimemo Exactly what CSS rules!? Link to comment Share on other sites More sharing options...
SayeyeZohor Posted December 7, 2019 Author Share Posted December 7, 2019 On 12/6/2019 at 8:43 AM, Sherzod said: Exactly what CSS rules!? any ... example (border, padding, line-height , ...) Link to comment Share on other sites More sharing options...
SISBLU Software Posted December 4, 2020 Share Posted December 4, 2020 Hello, Any Solution? The BORDER BLACK , How to remove this other border ??? This result UniHTMLMemo2.JSInterface.JSAddListener('initialize', 'function(editor){'+ ' const bodyArea = editor.getEditorBody();'+ ' bodyArea.style["border"] = "1px solid";'+ ' bodyArea.style["border-radius"] = "5px";'+ ' bodyArea.style["padding"] = "5px";'+ ' bodyArea.style["line-height"] = "2";'+ ' bodyArea.style["background-color"] = "#0190FD";'+ ' bodyArea.style["background-image"] = "linear-gradient(180deg, #0190FD, #0169FF)";'+ '}' ); Link to comment Share on other sites More sharing options...
SISBLU Software Posted December 9, 2020 Share Posted December 9, 2020 Any suggestion? Link to comment Share on other sites More sharing options...
Sherzod Posted December 29, 2020 Share Posted December 29, 2020 On 12/4/2020 at 11:03 PM, Daha Software said: Any Solution? The BORDER BLACK , How to remove this other border ??? This result UniHTMLMemo2.JSInterface.JSAddListener('initialize', 'function(editor){'+ ' const bodyArea = editor.getEditorBody();'+ ' bodyArea.style["border"] = "1px solid";'+ ' bodyArea.style["border-radius"] = "5px";'+ ' bodyArea.style["padding"] = "5px";'+ ' bodyArea.style["line-height"] = "2";'+ ' bodyArea.style["background-color"] = "#0190FD";'+ ' bodyArea.style["background-image"] = "linear-gradient(180deg, #0190FD, #0169FF)";'+ '}' ); Hello, Sorry for the late response. If the request is still valid, please create a simple test case. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now