drag and drop for editor (test in EditorTest.java)