Completed the template editing functionality
[biaweb_qt.git] / editor_dialog.py
index 9c35a22..e19101e 100644 (file)
@@ -17,9 +17,9 @@ class EditorDialog (PyQt4.QtGui.QDialog, ui_editor_dialog.Ui_EditorDialog):
                self.setWindowTitle ("Editor - " + title)
 
                # set text highlighting
-               highlighter.SimpleHtmlHighlighter (self.template_text.document ())
+               highlighter.SimpleHtmlHighlighter (self.text.document ())
 
-               self.template_text.setPlainText (init_text)
+               self.text.setPlainText (init_text)
                # set modified flag to false
                self.modified = False