Skip to content

Commit 5be7b06

Browse files
fix: templates
1 parent 868873d commit 5be7b06

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/cli/templates/react/src/components/FieldPluginExample/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useFieldPlugin } from '@storyblok/field-plugin/react'
77

88
const FieldPlugin: FunctionComponent = () => {
99
const { type, data, actions } = useFieldPlugin({
10+
enablePortalModal: true,
1011
validateContent: (content: unknown) => ({
1112
content: typeof content === 'number' ? content : 0,
1213
}),

packages/cli/templates/vue3/src/components/FieldPlugin.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { useFieldPlugin } from '@storyblok/field-plugin/vue3'
33
44
const plugin = useFieldPlugin({
5+
enablePortalModal: true,
56
/*
67
The `validateContent` parameter is optional. It allows you to
78
- validate the content

0 commit comments

Comments
 (0)