usxeditor
Version:
USX editor react component.
26 lines (25 loc) • 925 B
TypeScript
import React from 'react';
import { CharacterMarkerDefinitions } from '../UsxEditor';
declare type Props = {
attrs: any;
raw: string;
paraMap: string[];
charMap: CharacterMarkerDefinitions;
startOffset: number;
selectionStart: number;
selectionEnd: number;
allowFocus: boolean;
onChanged: (usx: string) => void;
onSelectionChanged: (selectionStartIndex: number, selectionEndIndex: number) => void;
onDeleteBackward?: (index?: number) => void;
children?: any;
};
export default class Para extends React.Component<Props> {
static get TagName(): string;
constructor(props: Props);
shouldComponentUpdate(nextProps: Readonly<Props>): boolean;
isSelectionInComponent(selection: number, startOffset: number): boolean;
handleInsertMarker(isPara: boolean, style: string, newValue?: string): void;
render(): React.ReactNode;
}
export {};