Skip to content

Commit 87bdeb0

Browse files
Fix/from rich text adds metatype (#5488)
* fromRichText adds metatype to new widget * change
1 parent eb76f9d commit 87bdeb0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changeset/wet-pianos-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"apostrophe": patch
3+
---
4+
5+
fromRichText adds metatype to new widget

packages/apostrophe/modules/@apostrophecms/area/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,8 @@ module.exports = {
886886
area.items.push({
887887
_id: self.apos.util.generateId(),
888888
type: '@apostrophecms/rich-text',
889-
content: html
889+
content: html,
890+
metaType: 'widget'
890891
});
891892
}
892893
return area;

0 commit comments

Comments
 (0)