usxeditor
Version:
USX editor react component.
23 lines (22 loc) • 791 B
TypeScript
import React from 'react';
import UsxFootnoteEditor from './UsxFootnoteEditor';
import { CharacterMarkerDefinitions } from './UsxEditor';
export declare type Props = {
usx: string;
paraMap: string[];
charMap: CharacterMarkerDefinitions;
selectionStart: number;
selectionEnd: number;
allowFocus: boolean;
onUsxChanged: (usx: string) => void;
onInsertMarker?: (isPara: boolean, style: string, newValue?: string) => void;
onSelectionChanged: (start: number, end: number) => void;
};
export default class UsxMainEditor extends React.PureComponent<Props> {
static defaultProps: {
allowFocus: boolean;
};
constructor(props: Props);
render(): JSX.Element;
}
export { UsxMainEditor as UsxEditor, UsxFootnoteEditor };