Use textDefaultFont in all variants of the InputToolbarView

This commit is contained in:
aringenbach
2023-03-08 17:30:50 +01:00
parent 935e61e1bb
commit 000d8465d0
5 changed files with 19 additions and 6 deletions

View File

@@ -99,6 +99,10 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
self.wysiwygViewModel.textView.attributedText = newValue
}
}
override var textDefaultFont: UIFont {
return self.wysiwygViewModel.textView.font ?? UIFont.preferredFont(forTextStyle: .body)
}
var isMaximised: Bool {
wysiwygViewModel.maximised