Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#12578] Fix @ issue by using innerHTML tag #12586

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix @ issue by using innerHTML tag
  • Loading branch information
RohithSurya committed Sep 12, 2023
commit 4950e4500033a406ba61e5c438431258e3e76b7c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="plain-text-area" *ngIf="!questionDetails.shouldAllowRichText">
<textarea [ngModel]="responseDetails.answer" (ngModelChange)="triggerResponseDetailsChange('answer', $event)" [attr.aria-label]="getAriaLabel()" [disabled]="isDisabled"></textarea>
<textarea (input)="triggerResponseDetailsChange('answer', $event.target.value)" [attr.aria-label]="getAriaLabel()" [disabled]="isDisabled" [innerHtml]="responseDetails.answer" ></textarea>
</div>
<tm-rich-text-editor *ngIf="questionDetails.shouldAllowRichText" [attr.aria-label]="getAriaLabel()" [richText]="responseDetails.answer" (richTextChange)="triggerResponseDetailsChange('answer', $event)" [isDisabled]="isDisabled"></tm-rich-text-editor>
<div class="margin-top-7px text-secondary text-end">