asimex-visual-editor
Version:
A powerful visual page editor component for React applications
23 lines (22 loc) • 918 B
TypeScript
import { SelectedElement } from '../types/editor';
export declare const useEditor: () => {
iframeRef: import("react").RefObject<HTMLIFrameElement>;
selectedElement: SelectedElement | null;
currentStyles: {
[key: string]: string;
};
showAssetManager: boolean;
isLoading: boolean;
hasContent: boolean;
setShowAssetManager: import("react").Dispatch<import("react").SetStateAction<boolean>>;
handleAssetSelect: (assetUrl: string) => void;
handleElementSelected: (payload: SelectedElement | null | undefined) => void;
handleOpenAssetManager: () => void;
updateStyle: (property: string, value: string) => void;
updateClasses: (classes: string[]) => void;
deleteElement: () => void;
copyElement: () => void;
loadHTMLContent: (htmlContent: string) => void;
exportHTML: () => void;
addBlock: (content: string, targetSelector?: string) => void;
};