code: function () {
            if (selection.isCollapsed()) {
              var elm = editor.dom.getParent(editor.selection.getStart(), 'a');
              if (elm) {
                editor.dom.remove(elm, true);
              }
  
              return;
            }
  
            formatter.remove("link");
          }
docs: Override unlink command