dmeditor
Version:
dmeditor is a block-style visual editor. Data is in json format.
40 lines (39 loc) • 1.36 kB
TypeScript
export interface BrowseProps {
type?: any;
adding?: boolean;
onConfirm?: any;
onCancel?: () => void;
defalutValue?: any;
hovering?: boolean;
}
export declare const Util: {
BrowseImage: any;
BrowseLink: any;
CustomProperty: any;
PreBlock: any;
pageTab: any;
pageTabActiveIndex: number;
toast: any;
fileUrl: any;
imageUrl: any;
renderBroseURL: (props: BrowseProps) => import("react/jsx-runtime").JSX.Element;
renderCustomProperty: (props: any) => import("react/jsx-runtime").JSX.Element | null;
renderPreBlock: (props: {
blockData: any;
}) => import("react/jsx-runtime").JSX.Element | null;
renderPageTab: () => import("react/jsx-runtime").JSX.Element | null;
getFileUrl: (path: any) => any;
getImageUrl: (path: any) => any;
poLastDiv: (obj: any) => void;
changrootValue: (newRoot: any) => void;
imgReady: (url: any, ready?: any, load?: any, error?: any) => () => void;
error: (msg: any, option?: any) => void;
message: (msg: any, option?: any) => void;
};
export declare const isServer: () => boolean;
export declare const sanitizeBlockData: (data: any) => any;
export declare const generateCommonBlockData: (type: string) => {
id: string;
type: string;
};
export declare const getValueByPath: (path: string, blockData: any) => any;