diff --git a/packages/cli/templates/js/src/main.js b/packages/cli/templates/js/src/main.js index 5d54b82a..e8ddd8e4 100644 --- a/packages/cli/templates/js/src/main.js +++ b/packages/cli/templates/js/src/main.js @@ -15,7 +15,6 @@ let previousType = 'loading' // Establish communication with the Visual Editor createFieldPlugin({ - enablePortalModal: true, validateContent: (content) => ({ content: typeof content === 'number' ? content : 0, }), diff --git a/packages/cli/templates/react/src/components/FieldPlugin.tsx b/packages/cli/templates/react/src/components/FieldPlugin.tsx index 0e11db4b..66c07911 100644 --- a/packages/cli/templates/react/src/components/FieldPlugin.tsx +++ b/packages/cli/templates/react/src/components/FieldPlugin.tsx @@ -3,7 +3,6 @@ import { useFieldPlugin } from '@storyblok/field-plugin/react' const FieldPlugin: FunctionComponent = () => { const plugin = useFieldPlugin({ - enablePortalModal: true, /* The `validateContent` parameter is optional. It allows you to - validate the content diff --git a/packages/cli/templates/react/src/components/FieldPluginExample/index.tsx b/packages/cli/templates/react/src/components/FieldPluginExample/index.tsx index f99df789..80cc3e3a 100644 --- a/packages/cli/templates/react/src/components/FieldPluginExample/index.tsx +++ b/packages/cli/templates/react/src/components/FieldPluginExample/index.tsx @@ -7,7 +7,6 @@ import { useFieldPlugin } from '@storyblok/field-plugin/react' const FieldPlugin: FunctionComponent = () => { const { type, data, actions } = useFieldPlugin({ - enablePortalModal: true, validateContent: (content: unknown) => ({ content: typeof content === 'number' ? content : 0, }), diff --git a/packages/cli/templates/vue2/src/fieldPlugin.js b/packages/cli/templates/vue2/src/fieldPlugin.js index f4cf2c24..5ce69db0 100644 --- a/packages/cli/templates/vue2/src/fieldPlugin.js +++ b/packages/cli/templates/vue2/src/fieldPlugin.js @@ -4,7 +4,6 @@ import { createFieldPlugin } from '@storyblok/field-plugin' export const fieldPluginMixin = { created() { createFieldPlugin({ - enablePortalModal: true, validateContent: (content) => ({ content: typeof content === 'number' ? content : 0, }), diff --git a/packages/cli/templates/vue3/src/components/FieldPlugin.vue b/packages/cli/templates/vue3/src/components/FieldPlugin.vue index 9bae6b85..268472a4 100644 --- a/packages/cli/templates/vue3/src/components/FieldPlugin.vue +++ b/packages/cli/templates/vue3/src/components/FieldPlugin.vue @@ -2,7 +2,6 @@ import { useFieldPlugin } from '@storyblok/field-plugin/vue3' const plugin = useFieldPlugin({ - enablePortalModal: true, /* The `validateContent` parameter is optional. It allows you to - validate the content diff --git a/packages/cli/templates/vue3/src/components/FieldPluginExample/index.vue b/packages/cli/templates/vue3/src/components/FieldPluginExample/index.vue index 63df6e61..324efd51 100644 --- a/packages/cli/templates/vue3/src/components/FieldPluginExample/index.vue +++ b/packages/cli/templates/vue3/src/components/FieldPluginExample/index.vue @@ -6,7 +6,6 @@ import AssetSelector from './AssetSelector.vue' import { useFieldPlugin } from '@storyblok/field-plugin/vue3' const plugin = useFieldPlugin({ - enablePortalModal: true, validateContent: (content: unknown) => ({ content: typeof content === 'number' ? content : 0, }),