2016-08-11 11:27:09 -03:00
|
|
|
export const emptyParagraphBlock = {
|
|
|
|
nodes: [
|
2016-09-29 18:53:47 +02:00
|
|
|
{
|
|
|
|
kind: 'block',
|
2016-08-11 11:27:09 -03:00
|
|
|
type: 'paragraph',
|
|
|
|
nodes: [{
|
|
|
|
kind: 'text',
|
|
|
|
ranges: [{
|
2016-10-18 12:32:39 -02:00
|
|
|
text: '',
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
],
|
2016-08-11 11:27:09 -03:00
|
|
|
};
|
2016-09-29 18:53:47 +02:00
|
|
|
|
|
|
|
export const mediaproxyBlock = mediaproxy => ({
|
|
|
|
kind: 'block',
|
|
|
|
type: 'paragraph',
|
|
|
|
nodes: [{
|
|
|
|
kind: 'inline',
|
|
|
|
type: 'mediaproxy',
|
|
|
|
isVoid: true,
|
|
|
|
data: {
|
|
|
|
alt: mediaproxy.name,
|
2016-10-18 12:32:39 -02:00
|
|
|
src: mediaproxy.public_path,
|
|
|
|
},
|
|
|
|
}],
|
2016-09-29 18:53:47 +02:00
|
|
|
});
|