Video Check

You can use editor.config.linkVedioCheck to customize check rules of network video.

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

// custom check rules of network video
editor.config.linkImgCheck = function(video) {
        // Have three case

        // 1. If return true,mean that check passed.
    return true
        //2. If return string, mean that check failed. this case editor will stop insert video, and alert error info(when return string).
        // return 'video have xxx error'.

        // If return undefined, mean that check failed. this case editor will stop insert video.
         // In this case, you can customize error info.
}

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

results matching ""

    No results matching ""