UNPKG

468 BTypeScriptView Raw
1import { NodeSpec } from 'prosemirror-model';
2import { RichMediaAttributes } from './types/rich-media-common';
3export interface EmbedCardAttributes extends RichMediaAttributes {
4 originalWidth?: number;
5 originalHeight?: number;
6 /**
7 * @validatorFn safeUrl
8 */
9 url: string;
10}
11/**
12 * @name embedCard_node
13 */
14export interface EmbedCardDefinition {
15 type: 'embedCard';
16 attrs: EmbedCardAttributes;
17}
18export declare const embedCard: NodeSpec;