MCPcopy
hub / github.com/securingsincity/react-ace / IAceEditorProps

Interface IAceEditorProps

src/ace.tsx:25–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 */
24
25export interface IAceEditorProps {
26 name?: string;
27 style?: React.CSSProperties;
28 /** For available modes see https://github.com/thlorenz/brace/tree/master/mode */
29 mode?: string | object;
30 /** For available themes see https://github.com/thlorenz/brace/tree/master/theme */
31 theme?: string;
32 height?: string;
33 width?: string;
34 className?: string;
35 fontSize?: number | string;
36 lineHeight?: number | string;
37 showGutter?: boolean;
38 showPrintMargin?: boolean;
39 highlightActiveLine?: boolean;
40 focus?: boolean;
41 cursorStart?: number;
42 wrapEnabled?: boolean;
43 readOnly?: boolean;
44 minLines?: number;
45 maxLines?: number;
46 navigateToFileEnd?: boolean;
47 debounceChangePeriod?: number;
48 enableBasicAutocompletion?: boolean | string[];
49 enableLiveAutocompletion?: boolean | string[];
50 enableMobileMenu?: boolean;
51 tabSize?: number;
52 value?: string;
53 placeholder?: string;
54 defaultValue?: string;
55 scrollMargin?: number[];
56 enableSnippets?: boolean;
57 onSelectionChange?: (value: any, event?: any) => void;
58 onCursorChange?: (value: any, event?: any) => void;
59 onInput?: (event?: any) => void;
60 onLoad?: (editor: Ace.Editor) => void;
61 onValidate?: (annotations: Ace.Annotation[]) => void;
62 onBeforeLoad?: (ace: typeof AceBuilds) => void;
63 onChange?: (value: string, event?: any) => void;
64 onSelection?: (selectedText: string, event?: any) => void;
65 onCopy?: (value: string) => void;
66 onPaste?: (value: string) => void;
67 onFocus?: (event: any, editor?: Ace.Editor) => void;
68 onBlur?: (event: any, editor?: Ace.Editor) => void;
69 onScroll?: (editor: IEditorProps) => void;
70 editorProps?: IEditorProps;
71 setOptions?: IAceOptions;
72 keyboardHandler?: string;
73 commands?: ICommand[];
74 annotations?: Ace.Annotation[];
75 markers?: IMarker[];
76}
77
78export default class ReactAce extends React.Component<IAceEditorProps> {
79 public static propTypes: PropTypes.ValidationMap<IAceEditorProps> = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…