import { UmbTiptapToolbarElementApiBase } from '../tiptap-toolbar-element-api-base.js';
export default class UmbTiptapToolbarHeading2ExtensionApi extends UmbTiptapToolbarElementApiBase {
    isActive(editor) {
        return editor?.isActive('heading', { level: 2 }) === true;
    }
    execute(editor) {
        editor?.chain().focus().toggleHeading({ level: 2 }).run();
    }
}
