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

        textView.formattingDelegate = self
        textView.textAttachmentDelegate = self
        textView.accessibilityIdentifier = "richContentView"
        
        if #available(iOS 11, *) {
            textView.smartDashesType = .no
            textView.smartQuotesType = .no

        var contentInset = referenceView.contentInset
        contentInset.top = titleHeightConstraint.constant + separatorView.frame.height
        referenceView.contentInset = contentInset
        var scrollInsets = contentInset
        var rightMargin = (view.frame.maxX - editorView.frame.maxX)
        if #available(iOS 11.0, *) {
            rightMargin -= view.safeAreaInsets.right
        }
        scrollInsets.right = -rightMargin
        referenceView.scrollIndicatorInsets = scrollInsets
        if (scrollToStart) {
            referenceView.setContentOffset(CGPoint(x: 0, y: -contentInset.top), animated: true)
        }
