Skip to content

Commit

Permalink
move the long hint for editor-content to the its title attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Dec 23, 2024
1 parent 9a73b47 commit 8f4f6ce
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/src/TipTapEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</floating-menu>
</div>

<editor-content :editor="editor" class="editorContent" />
<editor-content :editor="editor" class="editorContent" :title="$vuetify.locale.t('$vuetify.message_edit_placeholder')" />
</div>
</div>
</template>
Expand Down Expand Up @@ -433,11 +433,7 @@ export default {
History,
Placeholder.configure({
placeholder: ({ node }) => {
if (this.chatStore.shouldShowSendMessageButtons) {
return this.$vuetify.locale.t('$vuetify.message_edit_placeholder')
} else {
return this.$vuetify.locale.t('$vuetify.message_edit_placeholder_short')
}
return this.$vuetify.locale.t('$vuetify.message_edit_placeholder_short')
},
}),
Text,
Expand Down

0 comments on commit 8f4f6ce

Please sign in to comment.