Where can I edit the default font size in the editor?

Where can I edit the default font size in the editor?

Jens Gammelgaard-mit -
Antal besvarelser: 5
Translators-ip assinga

Hello,

Here the default font where I write this text is very nice 12pt., but in my Moodle it is 8 pt.

Where can I change the default font size?

Thanks in advance!

BR
Jens

Gennemsnitsbedømmelse: -
I svar til Jens Gammelgaard

Re: Where can I edit the default font size in the editor?

Janne Mikkonen-mit -
It depends on what version of Moodle you're using. If there isn't Editor Settings in your Administration page, then the change have to be made in the htmlarea.php script directly.

- Janne -
I svar til Janne Mikkonen

Re: Where can I edit the default font size in the editor?

Jens Gammelgaard-mit -
Translators-ip assinga

Hello Janne!

Thank you so far, I use version 1.4.3+ and the formal_white theme, and I can set in the admin so that the output will be my disired ex. 10pt (verdana), but when I write it the editor, where I write this text, but in my Moodle setup of course, then the size in the menu is set to 8pt, so that every time the user would like to see what he/she is writing then he would have to set it up to 10.

So I am not talking about the output - yes that can be controlled in the admin - I know - I am talking about the default font size of where you write in your editor...

So where exactly is that default font size changed?

If you would like me to elaborate it further, please let me know.

Thanks again.

BR
Jens

I svar til Jens Gammelgaard

Re: Where can I edit the default font size in the editor?

N Hansen-mit -
I filed bug 2017 some time ago, which is somewhat related to this. If anyone knows a solution to the problem, then it could be fixed.
I svar til Jens Gammelgaard

Re: Where can I edit the default font size in the editor?

Janne Mikkonen-mit -
In the dropdown menu the 1 (8 pt) is just the fist value of the list, nothing more.

You can change the order in htmlarea.php file starting from line 166

this.fontsize = {
"1 (8 pt)": "1",
"2 (10 pt)": "2",
"3 (12 pt)": "3",
"4 (14 pt)": "4",
"5 (18 pt)": "5",
"6 (24 pt)": "6",
"7 (36 pt)": "7"
};


Hope this is more helpful blinker

- Janne -

ps. Keep in mind that the right side value is not an order, but the matcing font size value for the left side value.


I svar til Janne Mikkonen

Re: Where can I edit the default font size in the editor?

Jens Gammelgaard-mit -
Translators-ip assinga

Hi Janne!

Thanks for the work around solution you have provided.

Challenge 1: I think what we all look for is that when I take a look in this replies' drop-down menu it starts with 8pt, but automatically it jumps to 12pt, when I start writing here in the text area.

So would a change of the order like:

this.fontsize = {
"3 (12 pt)": "3",
"1 (8 pt)": "1",
"2 (10 pt)": "2",
"4 (14 pt)": "4",
"5 (18 pt)": "5",
"6 (24 pt)": "6",
"7 (36 pt)": "7"
};

really make the result mentioned in challenge 1.?

BR
Jens