         editorView = UITextView(frame: .zero, textContainer: container)
         editorView.accessibilityLabel = NSLocalizedString("HTML Content", comment: "Post HTML content")
         editorView.accessibilityIdentifier = "HTMLContentView"
+        editorView.delegate = self
         editorView.translatesAutoresizingMaskIntoConstraints = false
-        editorView.text = htmlAttachment.prettyHTML()
+        editorView.text = pristinePrettyHTML
     }
 
     func setupMainView() {

    }
}


// MARK: - Actions
//
extension UnknownEditorViewController {

    @IBAction func cancelWasPressed() {
        dismiss(animated: true, completion: nil)
    }

    @IBAction func saveWasPressed() {
        
    }
}


//
class UnknownEditorViewController: UIViewController {

    /// Save Bar Button
    ///
    fileprivate(set) var saveButton: UIBarButtonItem = {
        let saveTitle = NSLocalizedString("Save", comment: "Save Action")
        return UIBarButtonItem(title: saveTitle, style: .plain, target: self, action: #selector(saveWasPressed))
    }()

    /// Cancel Bar Button
    ///
    fileprivate(set) var cancelButton: UIBarButtonItem = {
        let cancelTitle = NSLocalizedString("Cancel", comment: "Cancel Action")
        return UIBarButtonItem(title: cancelTitle, style: .plain, target: self, action: #selector(cancelWasPressed))
    }()

    /// HTML Editor
    ///
    fileprivate(set) var editorView: UITextView!
