[text editor] add function to deserialize pill