TextSelection: createStateObject