Bugfix: this.isPlainEditor is not a function #541

This commit is contained in:
the-djmaze 2022-10-01 16:37:28 +02:00
parent 261d9ba59c
commit 8ca651b2fa

View file

@ -945,7 +945,7 @@ export class ComposePopupView extends AbstractViewPopup {
this.editor(editor => {
encrypted || editor.setHtml(sText);
if (encrypted || this.isPlainEditor() || !message.isHtml()) {
if (encrypted || isPlainEditor() || !message.isHtml()) {
editor.modePlain();
}
encrypted && editor.setPlain(sText);