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

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

Bởi Jens Gammelgaard -
Số lượng các câu trả lời: 5
Hình của Translators

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

Trung bình điểm đánh giá: -
Để phản hồi tới Jens Gammelgaard

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

Bởi Janne Mikkonen -
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 -
Để phản hồi tới Janne Mikkonen

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

Bởi Jens Gammelgaard -
Hình của Translators

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

Để phản hồi tới Jens Gammelgaard

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

Bởi N Hansen -
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.
Để phản hồi tới Jens Gammelgaard

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

Bởi Janne Mikkonen -
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 nháy mắt

- 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.


Để phản hồi tới Janne Mikkonen

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

Bởi Jens Gammelgaard -
Hình của Translators

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