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: 2022-04-11 06:40:29

results matching ""

    No results matching ""