@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
40 lines (39 loc) • 1.17 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* @module ai/aieditorintegration/aitogglebutton/aitogglebuttonui
* @publicApi
*/
import { Plugin } from 'ckeditor5/src/core.js';
import { AITabs } from '../../aitabs/aitabs.js';
import '../../../theme/aieditorintegration/aitogglebutton.css';
/**
* Registers the `toggleAi` toolbar button that toggles the visibility of AI tabs.
*
* Context plugins can’t register toolbar items via the editor’s component factory, so this is provided as a dedicated editor plugin.
* Include this plugin in the editor configuration to enable the button.
*/
export declare class AIToggleButtonUI extends Plugin {
/**
* @inheritDoc
*/
static get requires(): readonly [typeof AITabs];
/**
* @inheritDoc
*/
static get pluginName(): "AIToggleButtonUI";
/**
* @inheritDoc
*/
static get isOfficialPlugin(): true;
/**
* @inheritDoc
*/
static get isPremiumPlugin(): true;
/**
* @inheritDoc
*/
init(): void;
}