@hufe921/canvas-editor
Version:
rich text editor by canvas/svg
16 lines (15 loc) • 331 B
TypeScript
import { BlockType } from '../dataset/enum/Block';
export interface IIFrameBlock {
src?: string;
srcdoc?: string;
sandbox?: string[];
allow?: string[];
}
export interface IVideoBlock {
src: string;
}
export interface IBlock {
type: BlockType;
iframeBlock?: IIFrameBlock;
videoBlock?: IVideoBlock;
}