diff --git a/projects/v3/src/app/pages/chat/chat-room/chat-room.component.html b/projects/v3/src/app/pages/chat/chat-room/chat-room.component.html index 0d589f6bb..f0f6ad587 100644 --- a/projects/v3/src/app/pages/chat/chat-room/chat-room.component.html +++ b/projects/v3/src/app/pages/chat/chat-room/chat-room.component.html @@ -59,13 +59,13 @@

{{ utils.getUserRolesForUI(message.senderRole) }}

- + - + > @@ -139,12 +139,12 @@ - -
+ +

{{ whoIsTyping }} @@ -160,6 +160,8 @@ customToolbarPosition="top" [modules]="editorModules" [classes]="isMobile ? 'editor-class' : 'editor-class desktop'" + [preserveWhitespace]="false" + [trimOnValidation]="true" [required]="true" class="message-text-editor" placeholder="Enter your message" diff --git a/projects/v3/src/app/pages/chat/chat-room/chat-room.component.ts b/projects/v3/src/app/pages/chat/chat-room/chat-room.component.ts index 725ac1938..015898e89 100644 --- a/projects/v3/src/app/pages/chat/chat-room/chat-room.component.ts +++ b/projects/v3/src/app/pages/chat/chat-room/chat-room.component.ts @@ -12,8 +12,8 @@ import { ChatInfoComponent } from '../chat-info/chat-info.component'; import { AttachmentPopoverComponent } from '../attachment-popover/attachment-popover.component'; import { Subject, timer } from 'rxjs'; import { debounceTime, switchMap, takeUntil, tap } from 'rxjs/operators'; -import { debounce } from 'lodash'; import { DomSanitizer } from '@angular/platform-browser'; +import { QuillModules } from 'ngx-quill'; enum ScrollPosition { @@ -73,7 +73,7 @@ export class ChatRoomComponent implements OnInit, OnDestroy, AfterViewInit { // quill editor modules private isMatcherApplied = false; - editorModules = { + editorModules: QuillModules = { magicUrl: { globalRegularExpression: /(https?:\/\/|www\.)[\S]+/g, urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)/g,