Skip to content

Commit

Permalink
Add delegate callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed Dec 15, 2023
1 parent 2b0cb8d commit e5eaf5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ protocol WKEditorInputViewDelegate: AnyObject {
func didTapBold(isSelected: Bool)
func didTapItalics(isSelected: Bool)
func didTapTemplate(isSelected: Bool)
func didTapStrikethrough(isSelected: Bool)
}

class WKEditorInputViewController: WKComponentViewController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ extension WKSourceEditorViewController: WKEditorInputViewDelegate {
textFrameworkMediator.templateFormatter?.toggleTemplateFormatting(action: action, in: textView)
}

func didTapStrikethrough(isSelected: Bool) {
}

func didTapClose() {
inputViewType = nil
let isRangeSelected = textView.selectedRange.length > 0
Expand Down

0 comments on commit e5eaf5f

Please sign in to comment.