used Editor.getSelectedText()