配置颜色

编辑器的字体颜色和背景色,可以通过 editor.config.colors 自定义配置

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

// 配置颜色(文字颜色、背景色)
editor.config.colors = [
    '#000000',
    '#eeece0',
    '#1c487f',
    '#4d80bf'
]

editor.create()
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2020-10-21 16:30:01

results matching ""

    No results matching ""