         // lazy load the editor
         _ = editor
 
-        view.addSubview(textView)
-
-        textView.attributedText = self.getSampleHTML()
+        view.addSubview(richTextView)
+
+        richTextView.attributedText = self.getSampleHTML()
 
         configureConstraints()
         configureNavigationBar()



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

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



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


