add support for bidi text

fix #1959

Signed-off-by: jamazi <jamazi@tutanota.com>
This commit is contained in:
jamazi
2023-11-05 13:36:45 +00:00
parent 30c5f276b6
commit 2a4b3e709c
9 changed files with 25 additions and 9 deletions

View File

@@ -41,6 +41,7 @@
</span>
</template>
<div ref="contentEditable"
dir="auto"
class="comment-form__contenteditable"
contenteditable
@keydown.enter="handleKeydown"

View File

@@ -13,6 +13,7 @@
</NcActions>
</div>
<NcRichText class="comment--content"
dir="auto"
:text="richText(comment)"
:arguments="richArgs(comment)"
:autolink="true" />
@@ -57,11 +58,15 @@
<CommentItem v-if="comment.replyTo" :reply="true" :comment="comment.replyTo" />
<div v-show="!edit" ref="richTextElement">
<NcRichText class="comment--content"
dir="auto"
:text="richText(comment)"
:arguments="richArgs(comment)"
:autolink="true" />
</div>
<CommentForm v-if="edit" v-model="commentMsg" @submit="updateComment" />
<CommentForm v-if="edit"
v-model="commentMsg"
dir="auto"
@submit="updateComment" />
</li>
</template>

View File

@@ -55,6 +55,7 @@
<template v-else>
<div v-if="!descriptionEditing && hasDescription"
id="description-preview"
dir="auto"
@click="clickedPreview"
v-html="renderedDescription" />
<p v-else-if="!descriptionEditing" class="placeholder" @click="showEditor()">