hrw-certificate-editor
Version:
Design Editor Tools with React.js + ant.design + fabric.js
46 lines (45 loc) • 1.48 kB
TypeScript
export default AceEditor;
declare class AceEditor extends React.Component<any, any, any> {
static propTypes: {
isHTML: PropTypes.Requireable<boolean>;
isCSS: PropTypes.Requireable<boolean>;
isJS: PropTypes.Requireable<boolean>;
isPreview: PropTypes.Requireable<boolean>;
html: PropTypes.Requireable<string>;
css: PropTypes.Requireable<string>;
js: PropTypes.Requireable<string>;
};
static defaultProps: {
isHTML: boolean;
isCSS: boolean;
isJS: boolean;
isPreview: boolean;
html: string;
css: string;
js: string;
};
constructor(props: any);
constructor(props: any, context: any);
handlers: {
onChangeHTML: import("lodash").DebouncedFunc<(value: any) => void>;
onChangeCSS: import("lodash").DebouncedFunc<(value: any) => void>;
onChangeJS: import("lodash").DebouncedFunc<(value: any) => void>;
onValidateHTML: (annotations: any) => void;
getAnnotations: () => {
htmlAnnotations: any[];
cssAnnotations: any[];
jsAnnotations: any[];
};
getCodes: () => {
html: any;
css: any;
js: any;
};
};
htmlRef: ReactAce;
cssRef: ReactAce;
jsRef: ReactAce;
}
import React from "react";
import ReactAce from "react-ace";
import PropTypes from "prop-types";