adding new font type into html editor

adding new font type into html editor

از tt kt در
Number of replies: 1

hi, i have a font type (contentPage) in the css file which i would like to use it in the html editor. i want this new font type which i have declared in the css file be set as a default font type in the editor. i am not too sure how can i link the new font name to the css class "contentPage" which i have defined in the css file.

found this piece of codes in htmlarea.php:

 this.fontname = {
  "contentPage" : .contentPage,
        "Arial":       'arial,helvetica,sans-serif',
        "Courier New":     'courier new,courier,monospace',
        "Georgia":     'georgia,times new roman,times,serif',
        "Tahoma":      'tahoma,arial,helvetica,sans-serif',
        "Times New Roman": 'times new roman,times,serif',
        "Verdana":     'verdana,arial,helvetica,sans-serif',
        "Impact":           'impact',
        "WingDings":       'wingdings'
    };

please advise, thanks.

میانگین امتیازات: -
In reply to tt kt

Re: adding new font type into html editor

از Matt Cromwell در
Actually, the easiest way (in Moodle 1.5) is to go to the administration page and then click "editor settings". There will be a field there for entering new font names. It has the following instructions:
"The font-family property is a list of font family names and/or generic family names. Family names must be seperated with comma."

hope that helps,
~mc~