File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed
vue3/src/components/FieldPluginExample Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ let previousType = 'loading'
15
15
16
16
// Establish communication with the Visual Editor
17
17
createFieldPlugin ( {
18
+ enablePortalModal : true ,
18
19
validateContent : ( content ) => ( {
19
20
content : typeof content === 'number' ? content : 0 ,
20
21
} ) ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { useFieldPlugin } from '@storyblok/field-plugin/react'
3
3
4
4
const FieldPlugin : FunctionComponent = ( ) => {
5
5
const plugin = useFieldPlugin ( {
6
+ enablePortalModal : true ,
6
7
/*
7
8
The `validateContent` parameter is optional. It allows you to
8
9
- validate the content
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { createFieldPlugin } from '@storyblok/field-plugin'
4
4
export const fieldPluginMixin = {
5
5
created ( ) {
6
6
createFieldPlugin ( {
7
+ enablePortalModal : true ,
7
8
validateContent : ( content ) => ( {
8
9
content : typeof content === 'number' ? content : 0 ,
9
10
} ) ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import AssetSelector from './AssetSelector.vue'
6
6
import { useFieldPlugin } from ' @storyblok/field-plugin/vue3'
7
7
8
8
const plugin = useFieldPlugin ({
9
+ enablePortalModal: true ,
9
10
validateContent : (content : unknown ) => ({
10
11
content: typeof content === ' number' ? content : 0 ,
11
12
}),
You can’t perform that action at this time.
0 commit comments