@wangeditor-next/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
11 lines (10 loc) • 469 B
TypeScript
/**
* @description video alignment helpers
*/
import { Element } from 'slate';
import { VideoAlign } from './custom-types';
export declare const DEFAULT_VIDEO_ALIGN: VideoAlign;
export declare function normalizeVideoAlign(value: unknown): VideoAlign;
export declare function getVideoAlign(elemNode: Element): VideoAlign;
export declare function getVideoAlignClass(align: VideoAlign): string;
export declare function getVideoJustifyContent(align: VideoAlign): string;