const editor = new E('#conclusion')
const that = this
// 或者 const editor = new E( document.getElementById('div1') )
editor.config.height = 300 // 富文本的高度
editor.config.uploadImgServer = '/upload-img'// 上传文件的接口路径
// editor.config.uploadVideoServer = 'yjglzsk/uploadFile'
editor.config.onchange = function (newHtml) { // 富文本的change事件
that.form.zjText = newHtml
}
// esc退出全屏
document.addEventListener('keyup', function(e) {
if (e.keyCode == 27) {
editor.unFullScreen()
}
})
// 隐藏上传网络图片
editor.config.showLinkImg = false
editor.config.onchangeTimeout = 500
wangeditor esc键退出全屏
最新推荐文章于 2024-04-24 09:33:43 发布