Added cursor for the editor. Fix issue #4913