@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
32 lines (31 loc) • 1.06 kB
TypeScript
import React from 'react';
import { ButtonEXProps } from '../../types';
interface IProps {
value?: string;
/** get notified as soon as user is out of the control */
onChange?: (value: string) => void;
/** add a save button and get the value once the user clicks save, close the editor after */
onSave?: (value: string) => void;
/** add a cancel button to close this editor */
onCancel?: () => void;
readonly?: boolean;
css?: string[];
/** render a smaller toolbar */
smallToolbar?: boolean;
/** show a div, click on it to render the editor */
editOnDemand?: boolean;
/** all designers */
kitchensink?: boolean;
speech?: boolean;
spellcheck?: boolean;
table?: boolean;
media?: boolean;
source?: boolean;
/**
* true: render the control in full screen
* button: render only a button that opens the editor in full screen
*/
fullScreen?: boolean | ButtonEXProps;
}
export declare const HtmlEditor: React.FunctionComponent<React.PropsWithChildren<IProps>>;
export {};