diff --git a/AddPageViewController.swift b/AddPageViewController.swift index 189cb3d..7d29b56 100644 --- a/AddPageViewController.swift +++ b/AddPageViewController.swift @@ -155,6 +155,13 @@ class AddPageViewController: UIViewController, UITextViewDelegate, UIImagePicker self.textView.insertText("*") } }, for: .touchUpInside), + RFToolbarButton(title: "- [ ]", andEventHandler: { + if (self.textView.selectedRange.length > 0) { + self.textView.wrapSelectedRange(with: "- [ ]") + } else { + self.textView.insertText("- [ ] ") + } + }, for: .touchUpInside), RFToolbarButton(title: "Indent", andEventHandler: { self.textView.insertText(" ") }, for: .touchUpInside),