UNPKG

@prisma-cms/editor

Version:
27 lines (26 loc) 979 B
export default class ToggleBlockType extends React.Component<any, any, any> { static propTypes: { onChange: PropTypes.Validator<(...args: any[]) => any>; editorState: PropTypes.Validator<object>; blockType: PropTypes.Validator<string>; icon: PropTypes.Validator<(...args: any[]) => any>; }; constructor(props: any); constructor(props: any, context: any); toggleBlockType: () => void; getSelectionEntity(editorState: any): any; getEntityRange(editorState: any, entityKey: any): undefined; getSelectedBlocksList(editorState: any): any; /** * Function returns the first selected block. */ getSelectedBlock(editorState: any): any; getSelectedBlocksMap(editorState: any): any; renderIcon(): JSX.Element; isDisabled(): any; isTextSelected(): any; getSelectionText(editorState: any): string; render(): JSX.Element; } import React from 'react'; import PropTypes from 'prop-types';