Function EditWidgetBase.getSelectedText

returns current selection text (joined with LF when span over multiple lines)

dstring getSelectedText();