Skip to content

Commit

Permalink
fix: revert changes to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-lindgren committed Oct 17, 2024
1 parent 1ceeda4 commit 609c12a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/cli/templates/js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ let previousType = 'loading'

// Establish communication with the Visual Editor
createFieldPlugin({
enablePortalModal: true,
validateContent: (content) => ({
content: typeof content === 'number' ? content : 0,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down
1 change: 0 additions & 1 deletion packages/cli/templates/vue2/src/fieldPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down
1 change: 0 additions & 1 deletion packages/cli/templates/vue3/src/components/FieldPlugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down

0 comments on commit 609c12a

Please sign in to comment.