Comments (3)
Hey thanks! Fully understandable - This would be much appreciated, but in the meantime, we are using a workaround through the Management API, so we are not in a hurry right now.
from field-plugin.
I have decided to quickly set up a minimal repro anyways, just for convenience:
This Field Type Plugin:
<template>
<SbButton size="small" @click="handleSelectAsset" is-full-width>Select Asset</SbButton>
<SbButton size="small" @click="removeAsset" is-full-width>RemoveAsset</SbButton>
<pre>{{ asset }}</pre>
</template>
<script setup lang="ts">
import { useFieldPlugin } from '@storyblok/field-plugin/vue3'
import { SbButton } from '@storyblok/design-system'
import { ref } from 'vue'
import type { Asset } from '@storyblok/field-plugin'
const asset = ref<Asset>()
const plugin = useFieldPlugin()
const handleSelectAsset = async () => {
asset.value = await plugin?.actions?.selectAsset()
}
const removeAsset = () => {
asset.value = undefined
}
</script>
produces this example output after selecting an image asset (I just printed it below the two buttons, sorry for the horrible formating)
Selecting the same image with the native Asset Picker gives me all of these and not just the filename
:
from field-plugin.
Hi @MilanFox thanks for suggesting this change 🙂
As we are in the middle of something, I cannot guarantee the ETA, but I will hopefully discuss about this and bring it to you soon.
from field-plugin.
Related Issues (20)
- Use data source for options HOT 4
- Sandbox not working in the browser Brave due to ad blocker HOT 1
- Multirepo pnpm install fails after creation HOT 8
- Wrong modal iframe heigth HOT 5
- Visual Editor does not detect changes in custom field plugin HOT 6
- Possibility to edit complete data structure in Field Plugin Sandbox HOT 3
- Access FieldPlugin options from within validateContent HOT 1
- Cannot find module '@storyblok/field-plugin/test' or its corresponding type declarations. HOT 3
- Add selected interface app language HOT 2
- Vue3 plugin options from useFieldPlugin hook is `undefined` HOT 2
- Field Plugin height is not correctly updated HOT 1
- [sandbox] Preserve settings in URL query parameters for easy sharing HOT 1
- Extend CLI with --publish flag option configurable
- Extend CLI deploy command with --spaces flag option configurable HOT 4
- Extend CLI to enable deleting field-type plugins HOT 4
- Add easy access to current block data object HOT 3
- Field plugins do not work on domains other than app.storyblok.com
- Vite 5 support ?
- Default options not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from field-plugin.