File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ input[type='number'] {
359359
360360.ProseMirror {
361361 @apply h-full min-h-fit max-h-full whitespace-pre-wrap;
362+ unicode-bidi : plaintext;
362363}
363364
364365.ProseMirror : focus {
Original file line number Diff line number Diff line change 871871 {#key $settings ?.richTextInput && $settings ?.showFormattingToolbar }
872872 <RichTextInput
873873 id =" chat-input"
874+ dir ={$settings ?.chatDirection ?? ' auto' }
874875 bind:this ={chatInputElement }
875876 json ={true }
876877 messageInput ={true }
Original file line number Diff line number Diff line change 13051305 <RichTextInput
13061306 bind:this ={chatInputElement }
13071307 id =" chat-input"
1308+ dir ={$settings ?.chatDirection ?? ' auto' }
13081309 editable ={! showInputModal }
13091310 onChange ={(content ) => {
13101311 prompt = content .md ;
Original file line number Diff line number Diff line change 694694 <textarea
695695 id ="message-edit- {message .id }"
696696 bind:this ={editTextAreaElement }
697+ dir ={$settings ?.chatDirection ?? ' auto' }
697698 class =" bg-transparent outline-hidden w-full resize-none"
698699 bind:value ={editedContent }
699700 on:input ={(e ) => {
Original file line number Diff line number Diff line change 287287 <textarea
288288 id ="message-edit- {message .id }"
289289 bind:this ={messageEditTextAreaElement }
290+ dir ={$settings ?.chatDirection ?? ' auto' }
290291 class =" bg-transparent outline-hidden w-full resize-none"
291292 bind:value ={editedContent }
292293 on:input ={(e ) => {
Original file line number Diff line number Diff line change 170170 export let documentId = ' ' ;
171171
172172 export let className = ' input-prose min-h-fit h-full' ;
173+ export let dir = ' auto' ;
173174 export let placeholder = $i18n .t (' Type here...' );
174175 let _placeholder = placeholder ;
175176
855856 }
856857 },
857858 editorProps: {
858- attributes: { id },
859+ attributes: { id , dir },
859860 handlePaste : (view , event ) => {
860861 // Force plain-text pasting when richText === false
861862 if (! richText ) {
11791180
11801181<div
11811182 bind:this ={element }
1182- dir = " auto "
1183+ { dir }
11831184 class ="relative w-full min-w-full {className } {! editable ? ' cursor-not-allowed' : ' ' }"
11841185/>
You can’t perform that action at this time.
0 commit comments