@mdefy/ngx-markdown-editor
Version:
An Angular Markdown Editor in WYSIWYG style with extensive functionality, high customizability and an integrated material theme.
26 lines (25 loc) • 984 B
TypeScript
import { MarkdownEditorComponent } from '../component/markdown-editor.component';
import { ToolbarItemName, ToolbarItemNormalized } from '../types/toolbar';
export declare class ToolbarService {
private _defaultItems;
/**
* The default configurations of all items
*/
get DEFAULT_ITEMS(): ToolbarItemNormalized[];
/**
* The default toolbar setup.
*/
readonly DEFAULT_TOOLBAR: ToolbarItemName[];
/**
* Returns the default configuration of the item with the specified name.
* Returns `undefined`, if no item with the specified name can be found.
*/
getDefaultItem(itemName: string): ToolbarItemNormalized | undefined;
/**
* Defines the default toolbar items.
* Cannot be done statically as the actions depend on the `MarkdownEditorComponent` instance.
*/
defineDefaultItems(ngxMde: MarkdownEditorComponent): void;
private isListTypeActive;
private isCodeTypeActive;
}