mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
feat: attached images by drag and drop for recipe steps (#1341)
* add drag and drop support for recipe steps * fix recipe assets dialog state * add attr support for markdown editor * add persistent hint for recipe text editor
This commit is contained in:
parent
37a673b34d
commit
7eb80d18d2
4 changed files with 118 additions and 11 deletions
|
@ -5,7 +5,7 @@
|
|||
:buttons="[
|
||||
{
|
||||
icon: previewState ? $globals.icons.edit : $globals.icons.eye,
|
||||
text: previewState ? $t('general.edit') : 'Preview Markdown',
|
||||
text: previewState ? $tc('general.edit') : 'Preview Markdown',
|
||||
event: 'toggle',
|
||||
},
|
||||
]"
|
||||
|
@ -14,14 +14,15 @@
|
|||
</div>
|
||||
<v-textarea
|
||||
v-if="!previewState"
|
||||
v-bind="textarea"
|
||||
v-model="inputVal"
|
||||
:class="label == '' ? '' : 'mt-5'"
|
||||
:label="label"
|
||||
auto-grow
|
||||
dense
|
||||
rows="4"
|
||||
></v-textarea>
|
||||
<VueMarkdown v-else :source="value"> </VueMarkdown>
|
||||
/>
|
||||
<VueMarkdown v-else :source="value" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -53,6 +54,10 @@ export default defineComponent({
|
|||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
textarea: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
},
|
||||
setup(props, context) {
|
||||
const fallbackPreview = ref(false);
|
||||
|
@ -84,5 +89,3 @@ export default defineComponent({
|
|||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue