import { UmbTiptapToolbarActionButtonApiBase } from '../tiptap-toolbar-action-button-api-base.js';
export default class UmbTiptapToolbarUnlinkExtensionApi extends UmbTiptapToolbarActionButtonApiBase {
    constructor() {
        super(...arguments);
        this.isActive = (editor) => editor?.isActive('umbLink') === true;
    }
    execute(editor) {
        editor?.chain().focus().unsetUmbLink().run();
    }
}
