editor: Add support for cursor