     ///
     fileprivate let htmlAttachment: HTMLAttachment
 
+    /// Unmodified HTML Text
+    ///
+    fileprivate let pristinePrettyHTML: String
+
+    /// Closure to be executed whenever the user saves changes performed on the document
+    ///
+    var onDidSave: ((String) -> Void)?
+
+    /// Closure to be executed whenever the user cancels edition
+    ///
+    var onDidCancel: ((Void) -> Void)?
+
+
 
     /// Default Initializer
     ///

extension UnknownEditorViewController {

    struct Constants {
        static let defaultContentFont   = UIFont.systemFont(ofSize: 14)
    }
}

//
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!
