adding image in the textarea

  • Unknown's avatar

    Hi,i’m sindu.
    i have a textarea and beside the textarea there is a button named “add”.when i’m loading the page an image will be inserted in the text area and when i click on add button the same image will be add next to the image in the textarea.but i can’t insert image.
    can u please help me.
    here is my code….

    <div class=”container” style=”width:500px”>
    <div class=”control-group” align=”left” style=”float: left” onselect=”selectText()”>
    <textarea id=”myTextarea” style=”height: 200px; width: 300px” onclick=”storeCaret(this);”
    onselect=”storeCaret(this);” onkeyup=”storeCaret(this);”> </textarea>
    </div>

    <div style=”float: left;margin-left: 5px”>
    <input type=”button” value=”Add Gap” onclick=”insertText();”>

    </div>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Some code is forbidden on WordPress.com and is stripped out:

    If you are familiar with HTML, you’ll notice that codes such as embed, frame, iframe, form, input, object, textarea and others are missing from the above list. Those codes are not allowed on WordPress.com for security reasons.

  • The topic ‘adding image in the textarea’ is closed to new replies.