add LTR script support

This commit is contained in:
Pete Matsyburka
2024-01-07 14:19:21 +02:00
parent ae7865e508
commit 17de28965b
30 changed files with 95 additions and 42 deletions
+2 -1
View File
@@ -61,6 +61,7 @@
v-if="field.type !== 'checkbox' || field.name"
ref="name"
:contenteditable="editable && !defaultField"
dir="auto"
class="pr-1 cursor-text outline-none block"
style="min-width: 2px"
@keydown.enter.prevent="onNameEnter"
@@ -83,7 +84,7 @@
class="label text-xs"
@click.prevent="field.required = !field.required"
@mousedown.prevent
>Required</label>
>{{ t('required') }}</label>
</div>
<button
v-else-if="editable"
@@ -5,6 +5,7 @@
>
<span
ref="contenteditable"
dir="auto"
:contenteditable="editable"
style="min-width: 2px"
:class="iconInline ? 'inline' : 'block'"
@@ -102,6 +102,7 @@
v-model="field.default_value"
type="text"
:placeholder="t('default_value')"
dir="auto"
class="input input-bordered input-xs w-full max-w-xs h-7 !outline-0"
@blur="save"
>
@@ -249,6 +250,7 @@
v-model="option.value"
class="w-full input input-primary input-xs text-sm bg-transparent !pr-7 -mr-6"
type="text"
dir="auto"
required
:placeholder="`${t('option')} ${index + 1}`"
@blur="save"
@@ -271,6 +273,7 @@
:placeholder="`${t('option')} ${index + 1}`"
type="text"
required
dir="auto"
@focus="maybeFocusOnOptionArea(option)"
@blur="save"
>