Skip to content

Commit 5bf71a7

Browse files
feat: enable by default in templates
1 parent 381fd16 commit 5bf71a7

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

packages/cli/templates/js/src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ let previousType = 'loading'
1515

1616
// Establish communication with the Visual Editor
1717
createFieldPlugin({
18+
enablePortalModal: true,
1819
validateContent: (content) => ({
1920
content: typeof content === 'number' ? content : 0,
2021
}),

packages/cli/templates/react/src/components/FieldPlugin.tsx

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

44
const FieldPlugin: FunctionComponent = () => {
55
const plugin = useFieldPlugin({
6+
enablePortalModal: true,
67
/*
78
The `validateContent` parameter is optional. It allows you to
89
- validate the content

packages/cli/templates/vue2/src/fieldPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createFieldPlugin } from '@storyblok/field-plugin'
44
export const fieldPluginMixin = {
55
created() {
66
createFieldPlugin({
7+
enablePortalModal: true,
78
validateContent: (content) => ({
89
content: typeof content === 'number' ? content : 0,
910
}),

packages/cli/templates/vue3/src/components/FieldPluginExample/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import AssetSelector from './AssetSelector.vue'
66
import { useFieldPlugin } from '@storyblok/field-plugin/vue3'
77
88
const plugin = useFieldPlugin({
9+
enablePortalModal: true,
910
validateContent: (content: unknown) => ({
1011
content: typeof content === 'number' ? content : 0,
1112
}),

0 commit comments

Comments
 (0)