XF 2.0 add a new family font to editor

AbuGhaith

Well-known member
hello
i want to add a new family font to the editor , can you give me the method to do it ?
thank you
 
Thank you Mike for the reply

i found this

Code:
getEditorConfig: function()
        {
            var fontSize = ['9', '10', '12', '15', '18', '22', '26'];
            var fontFamily = {
                "arial": 'Arial',
                "'book antiqua'": 'Book Antiqua',
                "'courier new'": 'Courier New',
                "georgia": 'Georgia',
                'tahoma': 'Tahoma',
                "'times new roman'": 'Times New Roman',
                "'trebuchet ms'": 'Trebuchet MS',
                "verdana": 'Verdana'
            };

in \js\xf\editor is the correct file to change and add a new fontfamily to show it in the editor ?
 
in \js\xf\editor is the correct file to change and add a new fontfamily to show it in the editor ?
Yes and no. That is the correct definition, but the file that is actually used is the minified version of it (and actually, I believe we then use a rolled up version with some other code).
 
Back
Top Bottom