     }
 
     func updateTitlePlaceholderVisibility() {
-        self.titlePlaceholderLabel.isHidden = !titleTextField.text.isEmpty
+        titlePlaceholderLabel.isHidden = !titleTextField.text.isEmpty
     }
 
     // MARK: - Configuration Methods
     override func viewDidLayoutSubviews() {
         super.viewDidLayoutSubviews()
 
-        var safeInsets = self.view.layoutMargins
+        var safeInsets = view.layoutMargins
         safeInsets.top = richTextView.textContainerInset.top
         richTextView.textContainerInset = safeInsets
         htmlTextView.textContainerInset = safeInsets

            }
            // Update associated link
            if let updatedURL = linkURL {
                self.richTextView.setLink(updatedURL, inRange: attachmentRange)
            } else if oldURL != nil && linkURL == nil {
                self.richTextView.removeLink(inRange: attachmentRange)
            }
        }


    fileprivate func refreshInsets(forKeyboardFrame keyboardFrame: CGRect) {
        let referenceView: UIScrollView = editingMode == .richText ? richTextView : htmlTextView

        let scrollInsets = UIEdgeInsets(top: referenceView.scrollIndicatorInsets.top, left: 0, bottom: view.frame.maxY - (keyboardFrame.minY + view.layoutMargins.bottom), right: 0)
        let contentInset = UIEdgeInsets(top: referenceView.contentInset.top, left: 0, bottom: view.frame.maxY - (keyboardFrame.minY + view.layoutMargins.bottom), right: 0)

        htmlTextView.scrollIndicatorInsets = scrollInsets
        htmlTextView.contentInset = contentInset
