             ])
     }
 
-    func configureNavigationBar() {
-        let title = NSLocalizedString("HTML", comment: "HTML!")
-        navigationItem.rightBarButtonItem = UIBarButtonItem(title: title,
-                                                            style: .plain,
-                                                            target: self,
-                                                           action: #selector(switchEditionMode))
-    }
-
 
     // MARK: - Helpers
 
-    @IBAction func switchEditionMode() {
-        mode.toggle()
+    @IBAction func toggleEditingMode() {
+        editingMode.toggle()
     }
 
 

        case .media:
            showImagePicker()
        case .sourcecode:
            toggleSourceCodeMode()
        }
        updateFormatBar()
    }

        return separatorView
    }()

    fileprivate(set) var editingMode: EditMode = .richText {
        didSet {
            view.endEditing(true)
            
            switch editingMode {
            case .html:
                switchToHTML()
            case .richText:
