Onfocus and Onblur

Editable area focus callback and blur callback.

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

editor.config.onblur = function (newHtml) {
    console.log('onblur', newHtml) // get latest html content
}
editor.config.onfocus = function (newHtml) {
    console.log('onfocus', newHtml) //  get latest html content
}

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

results matching ""

    No results matching ""