1 | import { NodeSpec, Node } from 'prosemirror-model';
|
2 | import { MediaDefinition as Media } from './media';
|
3 | import { LinkDefinition } from '../marks/link';
|
4 | export declare type Layout = 'wrap-right' | 'center' | 'wrap-left' | 'wide' | 'full-width' | 'align-end' | 'align-start';
|
5 |
|
6 |
|
7 |
|
8 | export interface MediaSingleDefinition {
|
9 | type: 'mediaSingle';
|
10 | |
11 |
|
12 |
|
13 |
|
14 | content: Array<Media>;
|
15 | attrs?: MediaSingleAttributes;
|
16 | marks?: Array<LinkDefinition>;
|
17 | }
|
18 | export interface MediaSingleAttributes {
|
19 | |
20 |
|
21 |
|
22 |
|
23 | width?: number;
|
24 | layout: Layout;
|
25 | }
|
26 | export declare const defaultAttrs: {
|
27 | width: {
|
28 | default: null;
|
29 | };
|
30 | layout: {
|
31 | default: string;
|
32 | };
|
33 | };
|
34 | export declare const mediaSingle: NodeSpec;
|
35 | export declare const toJSON: (node: Node<any>) => {
|
36 | attrs: any;
|
37 | };
|