@blinkk/editor
Version:
Structured content editor with live previews.
26 lines (25 loc) • 883 B
TypeScript
import { BasePart, Part } from '..';
import { TemplateResult } from '@blinkk/selective-edit';
import { UrlConfig } from '../../api';
import { DataStorage } from '../../../utility/dataStorage';
import { EditorState } from '../../state';
import { LiveEditor } from '../../editor';
export interface ContentToolbarConfig {
/**
* State class for working with editor state.
*/
state: EditorState;
/**
* Storage class for working with settings.
*/
storage: DataStorage;
}
export declare class ContentToolbarPart extends BasePart implements Part {
config: ContentToolbarConfig;
isExpanded?: boolean;
constructor(config: ContentToolbarConfig);
classesForPart(): Record<string, boolean>;
getIconForUrl(url: UrlConfig): string;
template(editor: LiveEditor): TemplateResult;
templateExpanded(editor: LiveEditor): TemplateResult;
}