rc-editor-core
Version:
editor-core ui component for react
19 lines (18 loc) • 567 B
TypeScript
import React from 'react';
import { Map, List } from 'immutable';
import { Plugin } from '../EditorCore';
import { EditorState } from 'draft-js';
export interface ToolbarProps {
plugins: List<Plugin>;
toolbars: any[];
prefixCls: string;
className: string;
editorState: EditorState;
}
export default class Toolbar extends React.Component<ToolbarProps, any> {
pluginsMap: Map<any, any>;
constructor(props: any);
renderToolbarItem(pluginName: any, idx: any): any;
conpomentWillReceiveProps(nextProps: any): void;
render(): any;
}