documentview.py: store selectedText in currentText to make it easily accessible