implementation done, only tests, localisation and design feedback are left

This commit is contained in:
Mauro Romito
2022-12-12 18:29:13 +01:00
parent 27c4ba45fd
commit 26e735b0b9
12 changed files with 66 additions and 13 deletions

View File

@@ -212,6 +212,13 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
wysiwygViewModel.maximised = false
}
func performLinkOperation(_ linkOperation: WysiwygLinkOperation) {
if let selectionToRestore = viewModel.selectionToRestore {
wysiwygViewModel.attributedContent.selection = selectionToRestore
}
wysiwygViewModel.applyLinkOperation(linkOperation)
}
// MARK: - Private
@objc private func keyboardWillShow(_ notification: Notification) {