Disable Editor

Note it is supported from v4.1.0.

If you disabled editor, you only can read content, and do not edit it. You can edit content after canceling disabled.

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

// Disabled editor by disable API
$btn1.click(() => {
  editor.disable()
})

// Cancel disabled by enable API
$btn2.click(() => {
  editor.enable()
})
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2021-07-04 12:51:04

results matching ""

    No results matching ""