code: function (e) {
          const editor = this.editor
          const $elem = this.$elem
          const $selectionELem = editor.selection.getSelectionContainerElem()
          if (!$selectionELem) {
              return
          }
          const $parentElem = $selectionELem.parent()
          if ($selectionELem.getNodeName() === 'CODE' && $parentElem.getNodeName() === 'PRE') {
              this._active = true
              $elem.addClass('w-e-active')
          } else {
              this._active = false
              $elem.removeClass('w-e-active')
          }
      }
docs: 试图改变 active 状态