CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Default Font

by etwoss » 10 Oct 2015 13:52

Hi

I would like to give the ditor a default font, is this possible?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 12 Oct 2015 08:39

Find a post telling

Code: Select all
.el-rte-structure{
  font-size: 10px;
  color: #FF0000;
}


in css file

so create a file called test.css with this code
saved in wwwroot folder

added test.css to cssFiles property

No changes

What am i doing wrong?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 12 Oct 2015 09:25

Hi Eric,

Please explain better what are you trying to do.
Change the font of whole editor or change the default font in dropdown?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 12 Oct 2015 10:58

Hi

if you just start typing in the editor what's the default font?
If you look at the content, there is no font information.
So if i use the content for an email , and i open the email in outlook its another font (it looks different, i think outlook's default font)

It would be nice to set a default font and size and that this font and size also appears in the content.

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by George » 12 Oct 2015 21:42

Hello!

Add this code:
delphi code
HTMLEditor.JQHTMLEditorOptions.CssFiles.Add('/your.css');
This will override content css.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Alexander Bulei » 13 Oct 2015 12:11

Hi Eric,

t would be nice to set a default font and size and that this font and size also appears in the content.


We will check that possibility asap.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Alexander Bulei » 13 Oct 2015 17:37

Hi Eric,

After the reviewing, the better way is adding your custom css file:

Geoge wrote:HTMLEditor.JQHTMLEditorOptions.CssFiles.Add('/your.css');


Then, inside override the font-family:

css code
body,html{
font-family: "Verdana, Geneva, sans-serif";
}


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 14 Oct 2015 07:35

Hi

The problem with this that my users can't choose their own font and size.

Did someone really test this?
Don't get it working!
css file in wwwroot, is that ok?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQHTMLEditor

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.