Skip to content

Commit

Permalink
fix textarea entry editor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 4, 2024
1 parent 246a3e2 commit ffc5dbc
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@

<div class="col-span-6 sm:col-span-6">
<InputLabel value="Name" />
{{ modelValue.name }}
<TextInput v-model="modelValue.name" type="text" class="mt-1 block w-full" />
<InputError :message="modelValue.errors.name" class="mt-2" />
</div>
<div class="col-span-6 sm:col-span-6">
<InputLabel value="Content" />

<Editor
v-if="usePage().props.features.editor"
v-model="modelValue.content" />

<TextArea v-else
v-model="modelValue.content" type="text"
<TextArea
v-model="modelValue.content"
class="w-full textarea textarea-secondary" rows="30"/>
<InputError :message="modelValue.errors.content" class="mt-2" />
</div>
Expand All @@ -27,6 +23,7 @@
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
import TextInput from '@/Components/TextInput.vue';
import TextArea from '@/Components/TextArea.vue';
import Editor from '@/Components/Editor.vue';
import {usePage} from "@inertiajs/vue3";
Expand All @@ -36,6 +33,4 @@ const props = defineProps({
</script>

0 comments on commit ffc5dbc

Please sign in to comment.