Automatically resizing input

I'd like to achieve this effect where a user can type in text into specific areas of a paragraph. I found a way to get the desired effect, but it uses a contenteditable <span/> element. I would like to use a <input/> element, but I can't find a way to make it have the same automatically resizing effect.

Anyone know how I could solve this?
Was this page helpful?