init() {
        const type = this.type === 'imageBrowser' ? 'image' : 'video'
        Nova.$on(`ckeditor:media:${this.attribute}-${type}:write`, this.writeContent.bind(this))
        this.ui.componentFactory.add(this.type, this.createButton.bind(this))
    }
/**
     * Initialize the plugin.
     * Start listening for events.
     * @return void
     */
Initialize the plugin.
Start listening for events.
@return void
Initialize the plugin . Start listening for events . @return void
init() {
        const type = this.type === 'imageBrowser' ? 'image' : 'video'
        Nova.$on(`ckeditor:media:${this.attribute}-${type}:write`, this.writeContent.bind(this))
        this.ui.componentFactory.add(this.type, this.createButton.bind(this))
    }
init ( ) { const type = this . type === 'imageBrowser' ? 'image' : 'video' Nova . $on ( ` ${ this . attribute } ${ type } ` , this . writeContent . bind ( this ) ) this . ui . componentFactory . add ( this . type , this . createButton . bind ( this ) ) }
Initialize the plugin.
Initialize the plugin .