Set Font Size

You can set font family to use editor.config.fontNames:

const E = window.wangEditor
const editor = new E('#div1')

editor.config.fontNames = [
    // object type
     {name:"Custom font name",value:"Arial"},
    // string type
    'Arial'
    'Tahoma',
    'Verdana',
    'Times New Roman',
    'Courier New',
]

editor.create()
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2021-07-04 12:51:04

results matching ""

    No results matching ""