createButton(locale) {
        const view = new ButtonView(locale)

        view.set({
            label: this.type === 'imageBrowser' ? 'Insert Image' : 'Insert Video',
            icon: this.icon,
            tooltip: true,
        })

        if (this.isEnabled) {
            view.on('execute', this.openModal.bind(this))
        }
        view.set('isVisible', this.isEnabled)

        return view
    }
/**
     * Create the plugin ButtonView
     * @param locale object
     * @return {ButtonView}
     */
Create the plugin ButtonView
@param locale object
@return {ButtonView}
Create the plugin ButtonView @param locale object @return { ButtonView }
createButton(locale) {
        const view = new ButtonView(locale)
        view.set({
            label: this.type === 'imageBrowser' ? 'Insert Image' : 'Insert Video',
            icon: this.icon,
            tooltip: true,
        })
        if (this.isEnabled) {
            view.on('execute', this.openModal.bind(this))
        }
        view.set('isVisible', this.isEnabled)
        return view
    }
createButton ( locale ) { const view = new ButtonView ( locale ) view . set ( { label : this . type === 'imageBrowser' ? 'Insert Image' : 'Insert Video' , icon : this . icon , tooltip : true , } ) if ( this . isEnabled ) { view . on ( 'execute' , this . openModal . bind ( this ) ) } view . set ( 'isVisible' , this . isEnabled ) return view }
Create the plugin ButtonView
 @param locale object
 @return {ButtonView}
Create the plugin ButtonView @param locale object @return { ButtonView }