Navigation Menu

Skip to content

Commit

Permalink
pagecut: serialize virtual content, it won't be kept in block
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouer committed Feb 19, 2020
1 parent 0466659 commit 3b9cbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pagecut/src/blocks-edit.js
Expand Up @@ -132,7 +132,7 @@ Blocks.prototype.serializeTo = function(parent, el, ancestor) {
item.node.setAttribute('block-type', item.type);
}
});
if (!def.virtual) el.contents.set(parent, def.id, this.view.utils.serializeHTML(content, true));
el.contents.set(parent, def.id, this.view.utils.serializeHTML(content, true));
});
if (Object.keys(parent.content).length == 0) delete parent.content;

Expand Down

0 comments on commit 3b9cbf0

Please sign in to comment.