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: [{
|
|
|
|
text: ''
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
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,
|
|
|
|
src: mediaproxy.public_path
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
});
|