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