So I want to show image thumbnails
too in the along with text. If you know a javascript solution that\'s perfect too(if possible i
you can use css to set an background image for textarea, and js to set the text
Use a div with contentEditable attribute which acts like a textarea. That's how wysiwyg editors are created.
div {
width: 300px;
height: 200px;
border: 1px solid #ccc;
}
<div contentEditable="true">Type here. You can insert images too
<img src="http://t2.gstatic.com/images?q=tbn:ANd9GcQCze-mfukcuvzKk7Ilj2zQ0CS6PbOkq7ZhRInnNd1Yz3TQzU4e&t=1" />
</div>
The short answer is no, it's not possible, sorry.
I understand you want to edit text and pictures but... why does it have to be inside a textarea? Such control is designed to hold plain text. There're many HTML editors written in JavaScript: