Skip to content

Commit

Permalink
Add checks if rich-text option is enabled before removing support (#5729
Browse files Browse the repository at this point in the history
)

Co-authored-by: martgil <[email protected]>
  • Loading branch information
martgil and martgil authored May 24, 2024
1 parent 7562156 commit 27a27c8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export class ComposeInputModule extends ViewModule<ComposeView> {
};

public removeRichTextFormatting = () => {
this.initSquire(false, true);
if (this.view.inputModule.isRichText()) {
this.initSquire(false, true);
}
};

public inputTextHtmlSetSafely = (html: string) => {
Expand Down

0 comments on commit 27a27c8

Please sign in to comment.