function (e) {
        const editor = this.editor
        const $elem = this.$elem
        if (editor._selectedImg) {
            this._active = true
            $elem.addClass('w-e-active')
        } else {
            this._active = false
            $elem.removeClass('w-e-active')
        }
    }
function (e) {
        const editor = this.editor
        const $elem = this.$elem
        if (editor._selectedImg) {
            this._active = true
            $elem.addClass('w-e-active')
        } else {
            this._active = false
            $elem.removeClass('w-e-active')
        }
    }
function ( e ) { const editor = this . editor const $elem = this . $elem if ( editor . _selectedImg ) { this . _active = true $elem . addClass ( 'w-e-active' ) } else { this . _active = false $elem . removeClass ( 'w-e-active' ) } }
试图改变 active 状态
试图改变 active 状态
onSelectonSelect