docs: function (value) {
          const editor = this.editor
          const $textElem = editor.$textElem
          editor.selection.restoreSelection()
          if (editor.cmd.queryCommandState(value)) {
              return
          }
          editor.cmd.do(value)
  
          // 验证列表是否被包裹在 <p> 之内
          let $selectionElem = editor.selection.getSelectionContainerElem()
          if ($selectionElem.getNodeName() === 'LI') {
              $selectionElem = $selectionElem.parent()
          }
          if (/^ol|ul$/i.test($selectionElem.getNodeName()) === false) {
              return
          }
          if ($selectionElem.equal($textElem)) {
              // 证明是顶级标签，没有被 <p> 包裹
              return
          }
          const $parent = $selectionElem.parent()
          if ($parent.equal($textElem)) {
              // $parent 是顶级标签，不能删除
              return
          }
  
          $selectionElem.insertAfter($parent)
          $parent.remove()
      }