editor: Add support for select type with functional and unit test