add support for bidi text
fix #1959 Signed-off-by: jamazi <jamazi@tutanota.com>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
</span>
|
||||
</template>
|
||||
<div ref="contentEditable"
|
||||
dir="auto"
|
||||
class="comment-form__contenteditable"
|
||||
contenteditable
|
||||
@keydown.enter="handleKeydown"
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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()">
|
||||
|
||||
Reference in New Issue
Block a user