diff --git a/vue3/src/components/inputs/StepEditor.vue b/vue3/src/components/inputs/StepEditor.vue index 7fd62df30..555f71d04 100644 --- a/vue3/src/components/inputs/StepEditor.vue +++ b/vue3/src/components/inputs/StepEditor.vue @@ -67,13 +67,13 @@
- + - +
diff --git a/vue3/src/components/inputs/StepMarkdownEditor.vue b/vue3/src/components/inputs/StepMarkdownEditor.vue index f7fcd3f66..c0cf066e1 100644 --- a/vue3/src/components/inputs/StepMarkdownEditor.vue +++ b/vue3/src/components/inputs/StepMarkdownEditor.vue @@ -17,10 +17,10 @@ {{$t('Ingredients')}} - + @@ -65,7 +65,7 @@ const templates = computed(() => { function insertTextAtPosition(text: string){ let textarea = markdownEditor.value.getTextareaDom() let position = textarea.selectionStart - if (step.value.instruction){ + if (step.value.instruction != undefined){ step.value.instruction = step.value.instruction.slice(0, position) + text + step.value.instruction.slice(position) nextTick(() => { diff --git a/vue3/src/pages/StartPage.vue b/vue3/src/pages/StartPage.vue index 8935a5499..b06b7e99b 100644 --- a/vue3/src/pages/StartPage.vue +++ b/vue3/src/pages/StartPage.vue @@ -34,13 +34,13 @@