 
 
     @IBAction func switchEditionMode() {
-        editor.toggleHTML()
+        let html = editor.toHTML()
+        NSLog("HTML \(html)")
     }
 
 



    func updateFormatBar() {
        guard let toolbar = textView.inputAccessoryView as? Aztec.FormatBar else {
            return
        }

        let range = textView.selectedRange
        let identifiers = editor.formatIdentifiersSpanningRange(range)
        toolbar.selectItemsMatchingIdentifiers(identifiers)
    }


    var bodyFont: UIFont? {
        get {
            return richTextView.font
        }
        set {
            richTextView.font = newValue
            layoutTextView()
        }
    }
