Could use a little help here. Thank you :)
I'm having trouble figuring out how to get the outer div to wrap around the inner div and expand upwards with the content inside the inner editable div.
The inner div should expand from bottom to top, and the outer div should envelop it (with green color wrapping around the red) and also expand along with it.
Note: To make the red div expand upwards, press SHIFT+ENTER.
I've provided an example in the codepen below:
<div style="background-color:green;">
Test Test
<div id="example" contenteditable style="background-color:red; position: absolute; bottom: 0px">
Test Test
</div>
</div>