SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to Make TEXTAREA Allow to Paste Images?

    Hello,

    Does anyone know how to make textarea allow to paste images in it?

    Thank you.


  2. #2
    SitePoint Zealot coothead's Avatar
    Join Date
    Jan 2005
    Location
    Chertsey, London, England
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi there notooth

    the only image that you can have in a textarea is a background-image...
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <base href="http://coothead.mysite.wanadoo-members.co.uk/pop_up_gallery/">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <style type="text/css">
    <!--
    textarea {
        width:300px;
        height:300px;
        background-image:url(ball_shad.jpg);
    }
    -->
    </style>
    
    </head>
    <body>
    
    <div>
    <textarea cols="0" rows="0"></textarea>
    </div>
    
    </body>
    </html>
    coothead

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,862
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It is a TEXTarea. To be able to paste images you would need an IMAGEarea and there isn't one.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Guru toasti's Avatar
    Join Date
    Feb 2004
    Location
    Grahamstown
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try using tinyMCE:
    http://tinymce.moxiecode.com/
    its a textarea replacement tool...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •