Set Colors

You can set font color and background color to use editor.config.colors:

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

// set color and background color
editor.config.colors = [
    '#000000',
    '#eeece0',
    '#1c487f',
    '#4d80bf'
]

editor.create()
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2022-04-11 06:40:29

results matching ""

    No results matching ""