I hope this is in the right forum.

Guys, I am trying to find a particular book read to me as a child by my teacher in the mid-1990s. It was about a kid who entered a world made of chocolate. I cannot remember more than that. However, I do remember there was another book read to us around the same time, where the world was made of textiles - I seem to remember it being set in a bed, but can't be sure. In both books the child was the protagonist and was told in the 3rd person.

I would be really grateful if anyone who can think of what either of these books might be, especially the chocolate one.